openapi-petstore-0.1.0.0: Auto-generated openapi-petstore API Client

Safe Haskell | Safe-Inferred
Language | Haskell2010

OpenAPIPetstore.Core

Contents

- OpenAPIPetstoreConfig
- OpenAPIPetstoreRequest
- HasBodyParam
- HasOptionalParam
  - OpenAPIPetstoreRequest Utils
  - Params Utils
    - OpenAPI `CollectionFormat` Utils
- AuthMethods
- Utils
- DateTime Formatting
- Date Formatting
- Byte/Binary Formatting
- Lens Type Aliases

Description

Synopsis

- data OpenAPIPetstoreConfig = OpenAPIPetstoreConfig {
  - configHost :: ByteString
  - configUserAgent :: Text
  - configLogExecWithContext :: LogExecWithContext
  - configLogContext :: LogContext
  - configAuthMethods :: [AnyAuthMethod]
  - configValidateAuthMethods :: Bool
  - configQueryExtraUnreserved :: ByteString
  }
- newConfig :: IO OpenAPIPetstoreConfig
- addAuthMethod :: AuthMethod auth => OpenAPIPetstoreConfig -> auth -> OpenAPIPetstoreConfig
- withStdoutLogging :: OpenAPIPetstoreConfig -> IO OpenAPIPetstoreConfig
- withStderrLogging :: OpenAPIPetstoreConfig -> IO OpenAPIPetstoreConfig
- withNoLogging :: OpenAPIPetstoreConfig -> OpenAPIPetstoreConfig
- data OpenAPIPetstoreRequest req contentType res accept = OpenAPIPetstoreRequest {
  - rMethod :: Method
  - rUrlPath :: [ByteString]
  - rParams :: Params
  - rAuthTypes :: [TypeRep]
  }
- rMethodL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) Method
- rUrlPathL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) [ByteString]
- rParamsL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) Params
- rAuthTypesL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) [TypeRep]
- class HasBodyParam req param where
  - setBodyParam :: forall contentType res accept. (Consumes req contentType, MimeRender contentType param) => OpenAPIPetstoreRequest req contentType res accept -> param -> OpenAPIPetstoreRequest req contentType res accept
- class HasOptionalParam req param where
  - applyOptionalParam :: OpenAPIPetstoreRequest req contentType res accept -> param -> OpenAPIPetstoreRequest req contentType res accept
  - (-&-) :: OpenAPIPetstoreRequest req contentType res accept -> param -> OpenAPIPetstoreRequest req contentType res accept
- data Params = Params {
  - paramsQuery :: Query
  - paramsHeaders :: RequestHeaders
  - paramsBody :: ParamBody
  }
- paramsQueryL :: Lens_' Params Query
- paramsHeadersL :: Lens_' Params RequestHeaders
- paramsBodyL :: Lens_' Params ParamBody
- data ParamBody
  - = ParamBodyNone
  - | ParamBodyB ByteString
  - | ParamBodyBL ByteString
  - | ParamBodyFormUrlEncoded Form
  - | ParamBodyMultipartFormData [Part]
- _mkRequest :: Method -> [ByteString] -> OpenAPIPetstoreRequest req contentType res accept
- _mkParams :: Params
- setHeader :: OpenAPIPetstoreRequest req contentType res accept -> [Header] -> OpenAPIPetstoreRequest req contentType res accept
- addHeader :: OpenAPIPetstoreRequest req contentType res accept -> [Header] -> OpenAPIPetstoreRequest req contentType res accept
- removeHeader :: OpenAPIPetstoreRequest req contentType res accept -> [HeaderName] -> OpenAPIPetstoreRequest req contentType res accept
- _setContentTypeHeader :: forall req contentType res accept. MimeType contentType => OpenAPIPetstoreRequest req contentType res accept -> OpenAPIPetstoreRequest req contentType res accept
- _setAcceptHeader :: forall req contentType res accept. MimeType accept => OpenAPIPetstoreRequest req contentType res accept -> OpenAPIPetstoreRequest req contentType res accept
- setQuery :: OpenAPIPetstoreRequest req contentType res accept -> [QueryItem] -> OpenAPIPetstoreRequest req contentType res accept
- addQuery :: OpenAPIPetstoreRequest req contentType res accept -> [QueryItem] -> OpenAPIPetstoreRequest req contentType res accept
- addForm :: OpenAPIPetstoreRequest req contentType res accept -> Form -> OpenAPIPetstoreRequest req contentType res accept
- _addMultiFormPart :: OpenAPIPetstoreRequest req contentType res accept -> Part -> OpenAPIPetstoreRequest req contentType res accept
- _setBodyBS :: OpenAPIPetstoreRequest req contentType res accept -> ByteString -> OpenAPIPetstoreRequest req contentType res accept
- _setBodyLBS :: OpenAPIPetstoreRequest req contentType res accept -> ByteString -> OpenAPIPetstoreRequest req contentType res accept
- _hasAuthType :: AuthMethod authMethod => OpenAPIPetstoreRequest req contentType res accept -> Proxy authMethod -> OpenAPIPetstoreRequest req contentType res accept
- toPath :: ToHttpApiData a => a -> ByteString
- toHeader :: ToHttpApiData a => (HeaderName, a) -> [Header]
- toForm :: ToHttpApiData v => (ByteString, v) -> Form
- toQuery :: ToHttpApiData a => (ByteString, Maybe a) -> [QueryItem]
- toPartialEscapeQuery :: ByteString -> Query -> PartialEscapeQuery
- data CollectionFormat
  - = CommaSeparated
  - | SpaceSeparated
  - | TabSeparated
  - | PipeSeparated
  - | MultiParamArray
- toHeaderColl :: ToHttpApiData a => CollectionFormat -> (HeaderName, [a]) -> [Header]
- toFormColl :: ToHttpApiData v => CollectionFormat -> (ByteString, [v]) -> Form
- toQueryColl :: ToHttpApiData a => CollectionFormat -> (ByteString, Maybe [a]) -> Query
- _toColl :: Traversable f => CollectionFormat -> (f a -> [(b, ByteString)]) -> f [a] -> [(b, ByteString)]
- _toCollA :: (Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t ByteString)]) -> f (t [a]) -> [(b, t ByteString)]
- _toCollA' :: (Monoid c, Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t c)]) -> (Char -> c) -> f (t [a]) -> [(b, t c)]
- class Typeable a => AuthMethod a where
  - applyAuthMethod :: OpenAPIPetstoreConfig -> a -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept)
- data AnyAuthMethod = forall a.AuthMethod a => AnyAuthMethod a
- data AuthMethodException = AuthMethodException String
- _applyAuthMethods :: OpenAPIPetstoreRequest req contentType res accept -> OpenAPIPetstoreConfig -> IO (OpenAPIPetstoreRequest req contentType res accept)
- _omitNulls :: [(Key, Value)] -> Value
- _toFormItem :: (ToHttpApiData a, Functor f) => t -> f a -> f (t, [Text])
- _emptyToNothing :: Maybe String -> Maybe String
- _memptyToNothing :: (Monoid a, Eq a) => Maybe a -> Maybe a
- newtype DateTime = DateTime {
  - unDateTime :: UTCTime
  }
- _readDateTime :: (MonadFail m, Alternative m) => String -> m DateTime
- _showDateTime :: (t ~ UTCTime, FormatTime t) => t -> String
- _parseISO8601 :: (ParseTime t, MonadFail m, Alternative m) => String -> m t
- newtype Date = Date {
  - unDate :: Day
  }
- _readDate :: MonadFail m => String -> m Date
- _showDate :: FormatTime t => t -> String
- newtype ByteArray = ByteArray {
  - unByteArray :: ByteString
  }
- _readByteArray :: MonadFail m => Text -> m ByteArray
- _showByteArray :: ByteArray -> Text
- newtype Binary = Binary {
  - unBinary :: ByteString
  }
- _readBinaryBase64 :: MonadFail m => Text -> m Binary
- _showBinaryBase64 :: Binary -> Text
- type Lens_' s a = Lens_ s s a a
- type Lens_ s t a b = forall (f :: Type -> Type). Functor f => (a -> f b) -> s -> f t

# OpenAPIPetstoreConfig

data OpenAPIPetstoreConfig Source #

Constructors

OpenAPIPetstoreConfig |
Fields configHost :: ByteString host supplied in the Request configUserAgent :: Text user-agent supplied in the Request configLogExecWithContext :: LogExecWithContext Run a block using a Logger instance configLogContext :: LogContext Configures the logger configAuthMethods :: [AnyAuthMethod] List of configured auth methods configValidateAuthMethods :: Bool throw exceptions if auth methods are not configured configQueryExtraUnreserved :: ByteString Configures additional querystring characters which must not be URI encoded, e.g. `+` or `:`

#### Instances

Instances details

Show OpenAPIPetstoreConfig Source # | display the config
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> OpenAPIPetstoreConfig -> ShowS # show :: OpenAPIPetstoreConfig -> String # showList :: [OpenAPIPetstoreConfig] -> ShowS #

newConfig :: IO OpenAPIPetstoreConfig Source #

constructs a default OpenAPIPetstoreConfig

configHost:

    http://petstore.swagger.io:80/v2

configUserAgent:

    "openapi-petstore/0.1.0.0"

addAuthMethod :: AuthMethod auth => OpenAPIPetstoreConfig -> auth -> OpenAPIPetstoreConfig Source #

updates config use AuthMethod on matching requests

withStdoutLogging :: OpenAPIPetstoreConfig -> IO OpenAPIPetstoreConfig Source #

updates the config to use stdout logging

withStderrLogging :: OpenAPIPetstoreConfig -> IO OpenAPIPetstoreConfig Source #

updates the config to use stderr logging

withNoLogging :: OpenAPIPetstoreConfig -> OpenAPIPetstoreConfig Source #

updates the config to disable logging

# OpenAPIPetstoreRequest

data OpenAPIPetstoreRequest req contentType res accept Source #

Represents a request.

Type Variables:

- req - request operation
- contentType - `MimeType` associated with request body
- res - response model
- accept - `MimeType` associated with response body

Constructors

OpenAPIPetstoreRequest |
Fields rMethod :: Method Method of OpenAPIPetstoreRequest rUrlPath :: [ByteString] Endpoint of OpenAPIPetstoreRequest rParams :: Params params of OpenAPIPetstoreRequest rAuthTypes :: [TypeRep] types of auth methods

#### Instances

Instances details

Show (OpenAPIPetstoreRequest req contentType res accept) Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> OpenAPIPetstoreRequest req contentType res accept -> ShowS # show :: OpenAPIPetstoreRequest req contentType res accept -> String # showList :: [OpenAPIPetstoreRequest req contentType res accept] -> ShowS #

rMethodL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) Method Source #

`rMethod` Lens

rUrlPathL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) [ByteString] Source #

`rUrlPath` Lens

rParamsL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) Params Source #

`rParams` Lens

rAuthTypesL :: Lens_' (OpenAPIPetstoreRequest req contentType res accept) [TypeRep] Source #

`rParams` Lens

# HasBodyParam

class HasBodyParam req param where Source #

Designates the body parameter of a request

Minimal complete definition

Nothing

Methods

setBodyParam :: forall contentType res accept. (Consumes req contentType, MimeRender contentType param) => OpenAPIPetstoreRequest req contentType res accept -> param -> OpenAPIPetstoreRequest req contentType res accept Source #

#### Instances

Instances details

HasBodyParam Op123testSpecialTags Client Source # | Body Param "body" - client model
Instance details Defined in OpenAPIPetstore.API.AnotherFake Methods setBodyParam :: (Consumes Op123testSpecialTags contentType, MimeRender contentType Client) => OpenAPIPetstoreRequest Op123testSpecialTags contentType res accept -> Client -> OpenAPIPetstoreRequest Op123testSpecialTags contentType res accept Source #
HasBodyParam CreateXmlItem XmlItem Source # | Body Param XmlItem - XmlItem Body
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes CreateXmlItem contentType, MimeRender contentType XmlItem) => OpenAPIPetstoreRequest CreateXmlItem contentType res accept -> XmlItem -> OpenAPIPetstoreRequest CreateXmlItem contentType res accept Source #
HasBodyParam FakeOuterBooleanSerialize BodyBool Source # | Body Param "body" - Input boolean as post body
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes FakeOuterBooleanSerialize contentType, MimeRender contentType BodyBool) => OpenAPIPetstoreRequest FakeOuterBooleanSerialize contentType res accept -> BodyBool -> OpenAPIPetstoreRequest FakeOuterBooleanSerialize contentType res accept Source #
HasBodyParam FakeOuterCompositeSerialize OuterComposite Source # | Body Param "body" - Input composite as post body
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes FakeOuterCompositeSerialize contentType, MimeRender contentType OuterComposite) => OpenAPIPetstoreRequest FakeOuterCompositeSerialize contentType res accept -> OuterComposite -> OpenAPIPetstoreRequest FakeOuterCompositeSerialize contentType res accept Source #
HasBodyParam FakeOuterNumberSerialize BodyDouble Source # | Body Param "body" - Input number as post body
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes FakeOuterNumberSerialize contentType, MimeRender contentType BodyDouble) => OpenAPIPetstoreRequest FakeOuterNumberSerialize contentType res accept -> BodyDouble -> OpenAPIPetstoreRequest FakeOuterNumberSerialize contentType res accept Source #
HasBodyParam FakeOuterStringSerialize BodyText Source # | Body Param "body" - Input string as post body
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes FakeOuterStringSerialize contentType, MimeRender contentType BodyText) => OpenAPIPetstoreRequest FakeOuterStringSerialize contentType res accept -> BodyText -> OpenAPIPetstoreRequest FakeOuterStringSerialize contentType res accept Source #
HasBodyParam TestBodyWithFileSchema FileSchemaTestClass Source # |
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes TestBodyWithFileSchema contentType, MimeRender contentType FileSchemaTestClass) => OpenAPIPetstoreRequest TestBodyWithFileSchema contentType res accept -> FileSchemaTestClass -> OpenAPIPetstoreRequest TestBodyWithFileSchema contentType res accept Source #
HasBodyParam TestBodyWithQueryParams User Source # |
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes TestBodyWithQueryParams contentType, MimeRender contentType User) => OpenAPIPetstoreRequest TestBodyWithQueryParams contentType res accept -> User -> OpenAPIPetstoreRequest TestBodyWithQueryParams contentType res accept Source #
HasBodyParam TestClientModel Client Source # | Body Param "body" - client model
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => OpenAPIPetstoreRequest TestClientModel contentType res accept -> Client -> OpenAPIPetstoreRequest TestClientModel contentType res accept Source #
HasBodyParam TestInlineAdditionalProperties ParamMapMapStringText Source # | Body Param "param" - request body
Instance details Defined in OpenAPIPetstore.API.Fake Methods setBodyParam :: (Consumes TestInlineAdditionalProperties contentType, MimeRender contentType ParamMapMapStringText) => OpenAPIPetstoreRequest TestInlineAdditionalProperties contentType res accept -> ParamMapMapStringText -> OpenAPIPetstoreRequest TestInlineAdditionalProperties contentType res accept Source #
HasBodyParam TestClassname Client Source # | Body Param "body" - client model
Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123 Methods setBodyParam :: (Consumes TestClassname contentType, MimeRender contentType Client) => OpenAPIPetstoreRequest TestClassname contentType res accept -> Client -> OpenAPIPetstoreRequest TestClassname contentType res accept Source #
HasBodyParam AddPet Pet Source # | Body Param "body" - Pet object that needs to be added to the store
Instance details Defined in OpenAPIPetstore.API.Pet Methods setBodyParam :: (Consumes AddPet contentType, MimeRender contentType Pet) => OpenAPIPetstoreRequest AddPet contentType res accept -> Pet -> OpenAPIPetstoreRequest AddPet contentType res accept Source #
HasBodyParam UpdatePet Pet Source # | Body Param "body" - Pet object that needs to be added to the store
Instance details Defined in OpenAPIPetstore.API.Pet Methods setBodyParam :: (Consumes UpdatePet contentType, MimeRender contentType Pet) => OpenAPIPetstoreRequest UpdatePet contentType res accept -> Pet -> OpenAPIPetstoreRequest UpdatePet contentType res accept Source #
HasBodyParam PlaceOrder Order Source # | Body Param "body" - order placed for purchasing the pet
Instance details Defined in OpenAPIPetstore.API.Store Methods setBodyParam :: (Consumes PlaceOrder contentType, MimeRender contentType Order) => OpenAPIPetstoreRequest PlaceOrder contentType res accept -> Order -> OpenAPIPetstoreRequest PlaceOrder contentType res accept Source #
HasBodyParam CreateUser User Source # | Body Param "body" - Created user object
Instance details Defined in OpenAPIPetstore.API.User Methods setBodyParam :: (Consumes CreateUser contentType, MimeRender contentType User) => OpenAPIPetstoreRequest CreateUser contentType res accept -> User -> OpenAPIPetstoreRequest CreateUser contentType res accept Source #
HasBodyParam CreateUsersWithArrayInput Body Source # | Body Param "body" - List of user object
Instance details Defined in OpenAPIPetstore.API.User Methods setBodyParam :: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body) => OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType res accept -> Body -> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType res accept Source #
HasBodyParam CreateUsersWithListInput Body Source # | Body Param "body" - List of user object
Instance details Defined in OpenAPIPetstore.API.User Methods setBodyParam :: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body) => OpenAPIPetstoreRequest CreateUsersWithListInput contentType res accept -> Body -> OpenAPIPetstoreRequest CreateUsersWithListInput contentType res accept Source #
HasBodyParam UpdateUser User Source # | Body Param "body" - Updated user object
Instance details Defined in OpenAPIPetstore.API.User Methods setBodyParam :: (Consumes UpdateUser contentType, MimeRender contentType User) => OpenAPIPetstoreRequest UpdateUser contentType res accept -> User -> OpenAPIPetstoreRequest UpdateUser contentType res accept Source #

# HasOptionalParam

class HasOptionalParam req param where Source #

Designates the optional parameters of a request

Minimal complete definition

applyOptionalParam | (-&-)

Methods

applyOptionalParam :: OpenAPIPetstoreRequest req contentType res accept -> param -> OpenAPIPetstoreRequest req contentType res accept Source #

Apply an optional parameter to a request

(-&-) :: OpenAPIPetstoreRequest req contentType res accept -> param -> OpenAPIPetstoreRequest req contentType res accept infixl 2 Source #

infix operator / alias for `addOptionalParam`

#### Instances

Instances details

HasOptionalParam TestEndpointParameters Callback Source # | Optional Param "callback" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int32 Source # | Optional Param "int32" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int64 Source # | Optional Param "int64" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamBinary Source # | Optional Param "binary" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDate Source # | Optional Param "date" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDateTime Source # | Optional Param "dateTime" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamFloat Source # | Optional Param "float" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamInteger Source # | Optional Param "integer" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamString Source # | Optional Param "string" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Password Source # | Optional Param "password" - None
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Password -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Password -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumFormString Source # | Optional Param "enum_form_string" - Form parameter enum test (string)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumFormStringArray Source # | Optional Param "enum_form_string_array" - Form parameter enum test (string array)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumHeaderString Source # | Optional Param "enum_header_string" - Header parameter enum test (string)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumHeaderStringArray Source # | Optional Param "enum_header_string_array" - Header parameter enum test (string array)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryDouble Source # | Optional Param "enum_query_double" - Query parameter enum test (double)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryInteger Source # | Optional Param "enum_query_integer" - Query parameter enum test (double)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryString Source # | Optional Param "enum_query_string" - Query parameter enum test (string)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryStringArray Source # | Optional Param "enum_query_string_array" - Query parameter enum test (string array)
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestGroupParameters BooleanGroup Source # | Optional Param "boolean_group" - Boolean in group parameters
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> BooleanGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> BooleanGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
HasOptionalParam TestGroupParameters Int64Group Source # | Optional Param "int64_group" - Integer in group parameters
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> Int64Group -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> Int64Group -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
HasOptionalParam TestGroupParameters StringGroup Source # | Optional Param "string_group" - String in group parameters
Instance details Defined in OpenAPIPetstore.API.Fake Methods applyOptionalParam :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> StringGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> StringGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
HasOptionalParam DeletePet ApiKey Source # |
Instance details Defined in OpenAPIPetstore.API.Pet Methods applyOptionalParam :: OpenAPIPetstoreRequest DeletePet contentType res accept -> ApiKey -> OpenAPIPetstoreRequest DeletePet contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest DeletePet contentType res accept -> ApiKey -> OpenAPIPetstoreRequest DeletePet contentType res accept Source #
HasOptionalParam UpdatePetWithForm Name2 Source # | Optional Param "name" - Updated name of the pet
Instance details Defined in OpenAPIPetstore.API.Pet Methods applyOptionalParam :: OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept -> Name2 -> OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept -> Name2 -> OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept Source #
HasOptionalParam UpdatePetWithForm StatusText Source # | Optional Param "status" - Updated status of the pet
Instance details Defined in OpenAPIPetstore.API.Pet Methods applyOptionalParam :: OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept -> StatusText -> OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept -> StatusText -> OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept Source #
HasOptionalParam UploadFile AdditionalMetadata Source # | Optional Param "additionalMetadata" - Additional data to pass to server
Instance details Defined in OpenAPIPetstore.API.Pet Methods applyOptionalParam :: OpenAPIPetstoreRequest UploadFile contentType res accept -> AdditionalMetadata -> OpenAPIPetstoreRequest UploadFile contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest UploadFile contentType res accept -> AdditionalMetadata -> OpenAPIPetstoreRequest UploadFile contentType res accept Source #
HasOptionalParam UploadFile File2 Source # | Optional Param "file" - file to upload
Instance details Defined in OpenAPIPetstore.API.Pet Methods applyOptionalParam :: OpenAPIPetstoreRequest UploadFile contentType res accept -> File2 -> OpenAPIPetstoreRequest UploadFile contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest UploadFile contentType res accept -> File2 -> OpenAPIPetstoreRequest UploadFile contentType res accept Source #
HasOptionalParam UploadFileWithRequiredFile AdditionalMetadata Source # | Optional Param "additionalMetadata" - Additional data to pass to server
Instance details Defined in OpenAPIPetstore.API.Pet Methods applyOptionalParam :: OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept -> AdditionalMetadata -> OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept -> AdditionalMetadata -> OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept Source #

data Params Source #

Request Params

Constructors

Params |
Fields paramsQuery :: Query paramsHeaders :: RequestHeaders paramsBody :: ParamBody

#### Instances

Instances details

Show Params Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> Params -> ShowS # show :: Params -> String # showList :: [Params] -> ShowS #

paramsQueryL :: Lens_' Params Query Source #

`paramsQuery` Lens

paramsHeadersL :: Lens_' Params RequestHeaders Source #

`paramsHeaders` Lens

paramsBodyL :: Lens_' Params ParamBody Source #

`paramsBody` Lens

data ParamBody Source #

Request Body

Constructors

ParamBodyNone |
ParamBodyB ByteString |
ParamBodyBL ByteString |
ParamBodyFormUrlEncoded Form |
ParamBodyMultipartFormData [Part] |

#### Instances

Instances details

Show ParamBody Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> ParamBody -> ShowS # show :: ParamBody -> String # showList :: [ParamBody] -> ShowS #

## OpenAPIPetstoreRequest Utils

_mkRequest Source #

Arguments

:: Method | Method
-> [ByteString] | Endpoint
-> OpenAPIPetstoreRequest req contentType res accept | req: Request Type, res: Response Type

_mkParams :: Params Source #

setHeader :: OpenAPIPetstoreRequest req contentType res accept -> [Header] -> OpenAPIPetstoreRequest req contentType res accept Source #

addHeader :: OpenAPIPetstoreRequest req contentType res accept -> [Header] -> OpenAPIPetstoreRequest req contentType res accept Source #

removeHeader :: OpenAPIPetstoreRequest req contentType res accept -> [HeaderName] -> OpenAPIPetstoreRequest req contentType res accept Source #

_setContentTypeHeader :: forall req contentType res accept. MimeType contentType => OpenAPIPetstoreRequest req contentType res accept -> OpenAPIPetstoreRequest req contentType res accept Source #

_setAcceptHeader :: forall req contentType res accept. MimeType accept => OpenAPIPetstoreRequest req contentType res accept -> OpenAPIPetstoreRequest req contentType res accept Source #

setQuery :: OpenAPIPetstoreRequest req contentType res accept -> [QueryItem] -> OpenAPIPetstoreRequest req contentType res accept Source #

addQuery :: OpenAPIPetstoreRequest req contentType res accept -> [QueryItem] -> OpenAPIPetstoreRequest req contentType res accept Source #

addForm :: OpenAPIPetstoreRequest req contentType res accept -> Form -> OpenAPIPetstoreRequest req contentType res accept Source #

_addMultiFormPart :: OpenAPIPetstoreRequest req contentType res accept -> Part -> OpenAPIPetstoreRequest req contentType res accept Source #

_setBodyBS :: OpenAPIPetstoreRequest req contentType res accept -> ByteString -> OpenAPIPetstoreRequest req contentType res accept Source #

_setBodyLBS :: OpenAPIPetstoreRequest req contentType res accept -> ByteString -> OpenAPIPetstoreRequest req contentType res accept Source #

_hasAuthType :: AuthMethod authMethod => OpenAPIPetstoreRequest req contentType res accept -> Proxy authMethod -> OpenAPIPetstoreRequest req contentType res accept Source #

## Params Utils

toPath :: ToHttpApiData a => a -> ByteString Source #

toHeader :: ToHttpApiData a => (HeaderName, a) -> [Header] Source #

toForm :: ToHttpApiData v => (ByteString, v) -> Form Source #

toQuery :: ToHttpApiData a => (ByteString, Maybe a) -> [QueryItem] Source #

toPartialEscapeQuery :: ByteString -> Query -> PartialEscapeQuery Source #

### OpenAPI `CollectionFormat` Utils

data CollectionFormat Source #

Determines the format of the array if type array is used.

Constructors

CommaSeparated | CSV format for multiple parameters.
SpaceSeparated | Also called SSV
TabSeparated | Also called TSV
PipeSeparated | `value1|value2|value2`
MultiParamArray | Using multiple GET parameters, e.g. `foo=bar&foo=baz`. This is valid only for parameters in "query" (`Query`) or "formData" (`Form`)

toHeaderColl :: ToHttpApiData a => CollectionFormat -> (HeaderName, [a]) -> [Header] Source #

toFormColl :: ToHttpApiData v => CollectionFormat -> (ByteString, [v]) -> Form Source #

toQueryColl :: ToHttpApiData a => CollectionFormat -> (ByteString, Maybe [a]) -> Query Source #

_toColl :: Traversable f => CollectionFormat -> (f a -> [(b, ByteString)]) -> f [a] -> [(b, ByteString)] Source #

_toCollA :: (Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t ByteString)]) -> f (t [a]) -> [(b, t ByteString)] Source #

_toCollA' :: (Monoid c, Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t c)]) -> (Char -> c) -> f (t [a]) -> [(b, t c)] Source #

# AuthMethods

class Typeable a => AuthMethod a where Source #

Provides a method to apply auth methods to requests

Methods

applyAuthMethod :: OpenAPIPetstoreConfig -> a -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #

#### Instances

Instances details

AuthMethod AnyAuthMethod Source # |
Instance details Defined in OpenAPIPetstore.Core Methods applyAuthMethod :: OpenAPIPetstoreConfig -> AnyAuthMethod -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #
AuthMethod AuthApiKeyApiKey Source # |
Instance details Defined in OpenAPIPetstore.Model Methods applyAuthMethod :: OpenAPIPetstoreConfig -> AuthApiKeyApiKey -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #
AuthMethod AuthApiKeyApiKeyQuery Source # |
Instance details Defined in OpenAPIPetstore.Model Methods applyAuthMethod :: OpenAPIPetstoreConfig -> AuthApiKeyApiKeyQuery -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #
AuthMethod AuthBasicHttpBasicTest Source # |
Instance details Defined in OpenAPIPetstore.Model Methods applyAuthMethod :: OpenAPIPetstoreConfig -> AuthBasicHttpBasicTest -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #
AuthMethod AuthOAuthPetstoreAuth Source # |
Instance details Defined in OpenAPIPetstore.Model Methods applyAuthMethod :: OpenAPIPetstoreConfig -> AuthOAuthPetstoreAuth -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #

data AnyAuthMethod Source #

An existential wrapper for any AuthMethod

Constructors

forall a.AuthMethod a => AnyAuthMethod a |

#### Instances

Instances details

AuthMethod AnyAuthMethod Source # |
Instance details Defined in OpenAPIPetstore.Core Methods applyAuthMethod :: OpenAPIPetstoreConfig -> AnyAuthMethod -> OpenAPIPetstoreRequest req contentType res accept -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #

data AuthMethodException Source #

indicates exceptions related to AuthMethods

Constructors

AuthMethodException String |

#### Instances

Instances details

Exception AuthMethodException Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toException :: AuthMethodException -> SomeException # fromException :: SomeException -> Maybe AuthMethodException # displayException :: AuthMethodException -> String #
Show AuthMethodException Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> AuthMethodException -> ShowS # show :: AuthMethodException -> String # showList :: [AuthMethodException] -> ShowS #

_applyAuthMethods :: OpenAPIPetstoreRequest req contentType res accept -> OpenAPIPetstoreConfig -> IO (OpenAPIPetstoreRequest req contentType res accept) Source #

apply all matching AuthMethods in config to request

# Utils

_omitNulls :: [(Key, Value)] -> Value Source #

Removes Null fields. (OpenAPI-Specification 2.0 does not allow Null in JSON)

_toFormItem :: (ToHttpApiData a, Functor f) => t -> f a -> f (t, [Text]) Source #

Encodes fields using WH.toQueryParam

_emptyToNothing :: Maybe String -> Maybe String Source #

Collapse (Just "") to Nothing

_memptyToNothing :: (Monoid a, Eq a) => Maybe a -> Maybe a Source #

Collapse (Just mempty) to Nothing

# DateTime Formatting

newtype DateTime Source #

Constructors

DateTime |
Fields unDateTime :: UTCTime

#### Instances

Instances details

FromJSON DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseJSON :: Value -> Parser DateTime parseJSONList :: Value -> Parser [DateTime]
ToJSON DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toJSON :: DateTime -> Value toEncoding :: DateTime -> Encoding toJSONList :: [DateTime] -> Value toEncodingList :: [DateTime] -> Encoding
Data DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DateTime -> c DateTime # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DateTime # toConstr :: DateTime -> Constr # dataTypeOf :: DateTime -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DateTime) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DateTime) # gmapT :: (forall b. Data b => b -> b) -> DateTime -> DateTime # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DateTime -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DateTime -> r # gmapQ :: (forall d. Data d => d -> u) -> DateTime -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> DateTime -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> DateTime -> m DateTime # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DateTime -> m DateTime # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DateTime -> m DateTime #
Show DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> DateTime -> ShowS # show :: DateTime -> String # showList :: [DateTime] -> ShowS #
NFData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods rnf :: DateTime -> () #
Eq DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods (==) :: DateTime -> DateTime -> Bool # (/=) :: DateTime -> DateTime -> Bool #
Ord DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods compare :: DateTime -> DateTime -> Ordering # (<) :: DateTime -> DateTime -> Bool # (<=) :: DateTime -> DateTime -> Bool # (>) :: DateTime -> DateTime -> Bool # (>=) :: DateTime -> DateTime -> Bool # max :: DateTime -> DateTime -> DateTime # min :: DateTime -> DateTime -> DateTime #
FromHttpApiData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseUrlPiece :: Text -> Either Text DateTime parseHeader :: ByteString -> Either Text DateTime parseQueryParam :: Text -> Either Text DateTime
ToHttpApiData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toUrlPiece :: DateTime -> Text toEncodedUrlPiece :: DateTime -> Builder toHeader :: DateTime -> ByteString toQueryParam :: DateTime -> Text
MimeRender MimeMultipartFormData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> DateTime -> ByteString Source # mimeRender' :: MimeMultipartFormData -> DateTime -> ByteString Source #

_readDateTime :: (MonadFail m, Alternative m) => String -> m DateTime Source #

    _parseISO8601

_showDateTime :: (t ~ UTCTime, FormatTime t) => t -> String Source #

    TI.formatISO8601Millis

_parseISO8601 :: (ParseTime t, MonadFail m, Alternative m) => String -> m t Source #

parse an ISO8601 date-time string

# Date Formatting

newtype Date Source #

Constructors

Date |
Fields unDate :: Day

#### Instances

Instances details

FromJSON Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseJSON :: Value -> Parser Date parseJSONList :: Value -> Parser [Date]
ToJSON Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toJSON :: Date -> Value toEncoding :: Date -> Encoding toJSONList :: [Date] -> Value toEncodingList :: [Date] -> Encoding
Data Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Date -> c Date # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Date # toConstr :: Date -> Constr # dataTypeOf :: Date -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Date) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Date) # gmapT :: (forall b. Data b => b -> b) -> Date -> Date # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Date -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Date -> r # gmapQ :: (forall d. Data d => d -> u) -> Date -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Date -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Date -> m Date # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Date -> m Date # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Date -> m Date #
Enum Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods succ :: Date -> Date # pred :: Date -> Date # toEnum :: Int -> Date # fromEnum :: Date -> Int # enumFrom :: Date -> [Date] # enumFromThen :: Date -> Date -> [Date] # enumFromTo :: Date -> Date -> [Date] # enumFromThenTo :: Date -> Date -> Date -> [Date] #
Ix Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods range :: (Date, Date) -> [Date] # index :: (Date, Date) -> Date -> Int # unsafeIndex :: (Date, Date) -> Date -> Int # inRange :: (Date, Date) -> Date -> Bool # rangeSize :: (Date, Date) -> Int # unsafeRangeSize :: (Date, Date) -> Int #
Show Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> Date -> ShowS # show :: Date -> String # showList :: [Date] -> ShowS #
NFData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods rnf :: Date -> () #
Eq Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods (==) :: Date -> Date -> Bool # (/=) :: Date -> Date -> Bool #
Ord Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods compare :: Date -> Date -> Ordering # (<) :: Date -> Date -> Bool # (<=) :: Date -> Date -> Bool # (>) :: Date -> Date -> Bool # (>=) :: Date -> Date -> Bool # max :: Date -> Date -> Date # min :: Date -> Date -> Date #
FromHttpApiData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseUrlPiece :: Text -> Either Text Date parseHeader :: ByteString -> Either Text Date parseQueryParam :: Text -> Either Text Date
ToHttpApiData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toUrlPiece :: Date -> Text toEncodedUrlPiece :: Date -> Builder toHeader :: Date -> ByteString toQueryParam :: Date -> Text
MimeRender MimeMultipartFormData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Date -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Date -> ByteString Source #

_readDate :: MonadFail m => String -> m Date Source #

    TI.parseTimeM True TI.defaultTimeLocale "%Y-%m-%d"

_showDate :: FormatTime t => t -> String Source #

    TI.formatTime TI.defaultTimeLocale "%Y-%m-%d"

# Byte/Binary Formatting

newtype ByteArray Source #

base64 encoded characters

Constructors

ByteArray |
Fields unByteArray :: ByteString

#### Instances

Instances details

FromJSON ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseJSON :: Value -> Parser ByteArray parseJSONList :: Value -> Parser [ByteArray]
ToJSON ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toJSON :: ByteArray -> Value toEncoding :: ByteArray -> Encoding toJSONList :: [ByteArray] -> Value toEncodingList :: [ByteArray] -> Encoding
Data ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ByteArray -> c ByteArray # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ByteArray # toConstr :: ByteArray -> Constr # dataTypeOf :: ByteArray -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ByteArray) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ByteArray) # gmapT :: (forall b. Data b => b -> b) -> ByteArray -> ByteArray # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ByteArray -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ByteArray -> r # gmapQ :: (forall d. Data d => d -> u) -> ByteArray -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ByteArray -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray #
Show ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> ByteArray -> ShowS # show :: ByteArray -> String # showList :: [ByteArray] -> ShowS #
NFData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods rnf :: ByteArray -> () #
Eq ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods (==) :: ByteArray -> ByteArray -> Bool # (/=) :: ByteArray -> ByteArray -> Bool #
Ord ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods compare :: ByteArray -> ByteArray -> Ordering # (<) :: ByteArray -> ByteArray -> Bool # (<=) :: ByteArray -> ByteArray -> Bool # (>) :: ByteArray -> ByteArray -> Bool # (>=) :: ByteArray -> ByteArray -> Bool # max :: ByteArray -> ByteArray -> ByteArray # min :: ByteArray -> ByteArray -> ByteArray #
FromHttpApiData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseUrlPiece :: Text -> Either Text ByteArray parseHeader :: ByteString -> Either Text ByteArray parseQueryParam :: Text -> Either Text ByteArray
ToHttpApiData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toUrlPiece :: ByteArray -> Text toEncodedUrlPiece :: ByteArray -> Builder toHeader :: ByteArray -> ByteString toQueryParam :: ByteArray -> Text
MimeRender MimeMultipartFormData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> ByteArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteArray -> ByteString Source #

_readByteArray :: MonadFail m => Text -> m ByteArray Source #

read base64 encoded characters

_showByteArray :: ByteArray -> Text Source #

show base64 encoded characters

newtype Binary Source #

any sequence of octets

Constructors

Binary |
Fields unBinary :: ByteString

#### Instances

Instances details

FromJSON Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseJSON :: Value -> Parser Binary parseJSONList :: Value -> Parser [Binary]
ToJSON Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toJSON :: Binary -> Value toEncoding :: Binary -> Encoding toJSONList :: [Binary] -> Value toEncodingList :: [Binary] -> Encoding
Data Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Binary -> c Binary # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Binary # toConstr :: Binary -> Constr # dataTypeOf :: Binary -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Binary) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Binary) # gmapT :: (forall b. Data b => b -> b) -> Binary -> Binary # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Binary -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Binary -> r # gmapQ :: (forall d. Data d => d -> u) -> Binary -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Binary -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Binary -> m Binary # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Binary -> m Binary # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Binary -> m Binary #
Show Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods showsPrec :: Int -> Binary -> ShowS # show :: Binary -> String # showList :: [Binary] -> ShowS #
NFData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods rnf :: Binary -> () #
Eq Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods (==) :: Binary -> Binary -> Bool # (/=) :: Binary -> Binary -> Bool #
Ord Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods compare :: Binary -> Binary -> Ordering # (<) :: Binary -> Binary -> Bool # (<=) :: Binary -> Binary -> Bool # (>) :: Binary -> Binary -> Bool # (>=) :: Binary -> Binary -> Bool # max :: Binary -> Binary -> Binary # min :: Binary -> Binary -> Binary #
FromHttpApiData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods parseUrlPiece :: Text -> Either Text Binary parseHeader :: ByteString -> Either Text Binary parseQueryParam :: Text -> Either Text Binary
ToHttpApiData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods toUrlPiece :: Binary -> Text toEncodedUrlPiece :: Binary -> Builder toHeader :: Binary -> ByteString toQueryParam :: Binary -> Text
MimeRender MimeMultipartFormData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Binary -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Binary -> ByteString Source #

_readBinaryBase64 :: MonadFail m => Text -> m Binary Source #

_showBinaryBase64 :: Binary -> Text Source #

# Lens Type Aliases

type Lens_' s a = Lens_ s s a a Source #

type Lens_ s t a b = forall (f :: Type -> Type). Functor f => (a -> f b) -> s -> f t Source #