!r*      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                        ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                                                                               )Nickolay Kudasov <nickolay@getshoptv.com> experimentalSafe4=?@AC[swagger2 A declare monad parametrized by d+  the output to accumulate (declarations).NThis monad is similar to both state and writer monads. Thus it can be seen as4a restricted append-only version of a state monad orBa writer monad with the extra ability to read all previous output.swagger2Definitions of declare and look! must satisfy the following laws: monoid homomorphism (mempty) mempty == return ()monoid homomorphism (mappend) x >>  y ==  (x <> y) for every x, ydeclare-look x >>  ==  (<> x)  <*  x for every xlook as left identity >> m == m for every mswagger2 x' is an action that produces the output x.swagger21 is an action that returns all the output so far.swagger2,A declare monad transformer parametrized by:d+  the output to accumulate (declarations);m  the inner monad.fThis monad transformer is similar to both state and writer monad transformers. Thus it can be seen as@a restricted append-only version of a state monad transformer orNa writer monad transformer with the extra ability to read all previous output.swagger21Lift a computation from the simple Declare monad.swagger2-Retrieve a function of all the output so far. swagger2 Evaluate  d m a# computation, ignoring new output d. swagger2Execute DeclateT d m a= computation, ignoring result and only producing new output d. swagger2 Evaluate  d m a2 computation, starting with empty output history. swagger2Run  d a! computation with output history d, producing result a and new output d. swagger2 Evaluate  d a computation, ignoring output d.swagger2Execute Declate d a9 computation, ignoring result and only producing output d.swagger2 Evaluate  d m a2 computation, starting with empty output history.  None &'.>Xac+swagger2*Generic serialisation for swagger records.Features:omits nulls, empty objects and empty arrays (configurable)possible to add fieldspossible to merge sub-object,swagger2BTODO:* This is only used by ToJSON (ParamSchema SwaggerKindSchema)Also uses default '"swagger2prefix!"#$%&'()*+,-.#$+.,-%&'!")(*None ,.HUVgt5swagger2Infer a :( for a generic representation of a type.8swagger2 A combined shape for a sum type.9swagger2$A combined shape for a product type.:swagger2Shape of a datatype.;swagger2A simple enumeration.<swagger2(A product or a sum of non-unit products.=swagger28Mixed sum type with both unit and non-unit constructors. 56789:=<; :=<;98765None 8=>?SUVXh: >@?ABCDEFGHIJ DEFGHIJABC>@?None"#&'.124567=>?HMVX@l_swagger2A simple object to allow referencing other definitions in the specification. It can be used to reference parameters and responses that are defined at the top level for reuse.bswagger2CAllows referencing an external resource for extended documentation.dswagger2fA short description of the target documentation. GFM syntax can be used for rich text representation.eswagger2%The URL for the target documentation.fswagger28Allows adding meta data to a single tag that is used by  Operation!. It is not mandatory to have a Tag per tag used there.hswagger2The name of the tag.iswagger2VA short description for the tag. GFM syntax can be used for rich text representation.jswagger2/Additional external documentation for this tag.kswagger2 Tag name.lswagger2Lists the required security schemes to execute this operation. The object can have multiple security schemes declared in it which are all required (that is, there is a logical AND between the schemes).qswagger2 The type of the security scheme.rswagger2(A short description for security scheme.yswagger2,The flow used by the OAuth2 security scheme.zswagger24The available scopes for the OAuth2 security scheme.swagger2NThe token URL to be used for OAuth2 flow. This SHOULD be in the form of a URL.swagger2VThe authorization URL to be used for OAuth2 flow. This SHOULD be in the form of a URL.swagger25The name of the header or query parameter to be used.swagger2The location of the API key.swagger2The location of the API key.swagger2"A short description of the header.swagger22Describes a single response from an API Operation.swagger2ZA short description of the response. GFM syntax can be used for rich text representation.swagger2;A definition of the response structure. It can be a primitive, an array or an object. If this field does not exist, it means no content is returned as part of the response. As an extension to the Schema Object, its root type value may also be "file". This SHOULD be accompanied by a relevant produces mime-type.swagger22A list of headers that are sent with the response.swagger2#An example of the response message.swagger2tA container for the expected responses of an operation. The container maps a HTTP response code to the expected response. It is not expected from the documentation to necessarily cover all possible HTTP response codes, since they may not be known in advance. However, it is expected from the documentation to cover a successful operation response and any known errors.swagger2The documentation of responses other than the ones declared for specific HTTP response codes. It can be used to cover undeclared responses.swagger2Any HTTP status code can be used as the property name (one property per HTTP status code). Describes the expected response for those HTTP status codes.swagger2lReplaces the name of the element/attribute used for the described schema property. When defined within the  (items), it will affect the name of the individual XML elements within the list. When defined alongside type being array (outside the items), it will affect the wrapping element and only if wrapped is true. If wrapped is false, it will be ignored.swagger2KThe URL of the namespace definition. Value SHOULD be in the form of a URL.swagger2#The prefix to be used for the name.swagger2mDeclares whether the property definition translates to an attribute instead of an element. Default value is False.swagger2aMAY be used only for an array definition. Signifies whether the array is wrapped (for example,  <books><book><book ></books>) or unwrapped (<book><book>). Default value is False`. The definition takes effect only when defined alongside type being array (outside the items).swagger2aDeclares the value of the parameter that the server will use if none is provided, for example a "count"< to control the number of results per page might default to 100 if not supplied by the client in the request. (Note: "default" has no meaning for required parameters.) Unlike JSON Schema this value MUST conform to the defined type for this parameter.swagger2Regex pattern for string type.swagger2A = with an optional name. This name can be used in references.swagger2#Determines the format of the array.swagger2:Parameters that are appended to the URL. For example, in  /items?id=###, the query parameter is id.swagger28Custom headers that are expected as part of the request.swagger2Used together with Path Templating, where the parameter value is actually part of the operation's URL. This does not include the host or base path of the API. For example, in items{itemId}, the path parameter is itemId.swagger2<Used to describe the payload of an HTTP request when either !application/x-www-form-urlencoded or multipart/form-dataL are used as the content type of the request (in Swagger's definition, the consumesq property of an operation). This is the only parameter type that can be used to send files, thus supporting the  ParamFile type. Since form parameters are sent in the payload, they cannot be declared together with a body parameter for the same operation. Form parameters have a different format based on the content-type used (for further details, consult  :http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4).swagger23Type used as a kind to avoid overlapping instances.swagger2 Items for  schemas.E should be used only for query params, headers and path pieces. The  tN parameter specifies how elements of an array should be displayed. Note that fmt in  fmt schema' specifies format for elements of type schema1. This is different from the original Swagger's  ,http://swagger.io/specification/#itemsObject Items Object., should be used to specify homogenous array s.! should be used to specify tuple s.swagger2The location of the parameter.swagger2QSets the ability to pass empty-valued parameters. This is valid only for either  or [ and allows you to send a parameter with a name only or an empty value. Default value is False.swagger2oDescribes a single operation parameter. A unique parameter is defined by a combination of a name and location.swagger2?The name of the parameter. Parameter names are case sensitive.swagger2A brief description of the parameter. This could contain examples of use. GFM syntax can be used for rich text representation.swagger2Determines whether this parameter is mandatory. If the parameter is in "path", this property is required and its value MUST be true. Otherwise, the property MAY be included and its default value is False.swagger2Parameter schema.swagger2+Describes a single API operation on a path.swagger2A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.swagger2A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.swagger2fA verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.swagger25Additional external documentation for this operation.swagger2Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the it to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.swagger2DA list of MIME types the operation can consume. This overrides the consumes. Just [], MAY be used to clear the global definition.swagger2DA list of MIME types the operation can produce. This overrides the produces. Just [], MAY be used to clear the global definition.swagger2gA list of parameters that are applicable for this operation. If a parameter is already defined at the , the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location.swagger2RThe list of possible responses as they are returned from executing this operation.swagger2>The transfer protocol for the operation. The value overrides schemes.swagger2rDeclares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is False.swagger2BA declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level security. To remove a top-level security declaration, Just [] can be used.swagger28Describes the operations available on a single path. A  may be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available. swagger2-A definition of a GET operation on this path. swagger2-A definition of a PUT operation on this path. swagger2.A definition of a POST operation on this path. swagger20A definition of a DELETE operation on this path.swagger21A definition of a OPTIONS operation on this path.swagger2.A definition of a HEAD operation on this path.swagger2/A definition of a PATCH operation on this path.swagger2-A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location.swagger2!The transfer protocol of the API.swagger2=The host (name or ip) serving the API. It MAY include a port.swagger2 Host name.swagger2Optional port.swagger2(License information for the exposed API.swagger2"The license name used for the API.swagger2&A URL to the license used for the API.swagger2(Contact information for the exposed API.!swagger28The identifying name of the contact person/organization."swagger2,The URL pointing to the contact information.#swagger25The email address of the contact person/organization.$swagger2The object provides metadata about the API. The metadata can be used by the clients if needed, and can be presented in the Swagger-UI for convenience.&swagger2The title of the application.'swagger2]A short description of the application. GFM syntax can be used for rich text representation.(swagger2!The Terms of Service for the API.)swagger2,The contact information for the exposed API.*swagger2,The license information for the exposed API.+swagger2aProvides the version of the application API (not to be confused with the specification version).,swagger2;This is the root document object for the API specification..swagger2TProvides metadata about the API. The metadata can be used by the clients if needed./swagger2The host (name or ip) serving the API. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port).0swagger2The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/).1swagger2The transfer protocol of the API. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.2swagger2sA list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls.3swagger2sA list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls.4swagger2The available paths and operations for the API. Holds the relative paths to the individual endpoints. The path is appended to the basePath$ in order to construct the full URL.5swagger2AAn object to hold data types produced and consumed by operations.6swagger2An object to hold parameters that can be used across operations. This property does not define global parameters for all operations.7swagger2An object to hold responses that can be used across operations. This property does not define global responses for all operations.8swagger2FSecurity scheme definitions that can be used across the specification.9swagger2A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.:swagger2^A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared may be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.;swagger2"Additional external documentation.<swagger25A list of definitions that can be used in references.swagger26decode "{}" :: Maybe (SwaggerItems 'SwaggerKindSchema)Just (SwaggerItemsArray [])feitherDecode "{\"$ref\":\"#/definitions/example\"}" :: Either String (SwaggerItems 'SwaggerKindSchema)GRight (SwaggerItemsObject (Ref (Reference {getReference = "example"})))heitherDecode "[{\"$ref\":\"#/definitions/example\"}]" :: Either String (SwaggerItems 'SwaggerKindSchema)FRight (SwaggerItemsArray [Ref (Reference {getReference = "example"})])swagger2:As for nullary schema for 0-arity type constructors, see  0https://github.com/GetShopTV/swagger2/issues/167.encode (SwaggerItemsArray [])."{\"example\":[],\"items\":{},\"maxItems\":0}"VXWYZ[\]^_`abcedfgjihklmnoprqsvutwxzy{~}|      #"!$%+*)('&,-;:9876543210/.<=>?@ABCDEFGHIJKLMNOPQ<,-;:9876543210/.$%+*)('& #"!=>     ?@ABCDEFGHIJKLMNO{~}|wxzysvutoprqlmnkfgjihbced_`a\]^YZ[VXWPQ)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNone&'.=>?@ACHSVXJI    !"#$%&,-./0123456789:;<=NOPQRSTUVWXYZ[\]^_`abcdefghijklm~    %&#$!"<=:;8967452301./,-lmjkhifgdebc`a^_\]Z[XYVWTURSPQNO~)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNone"#]qswagger2?Options that specify how to encode your type to Swagger schema.swagger2XFunction applied to field labels. Handy for removing common record prefixes for example.swagger2\Function applied to constructor tags which could be handy for lower-casing them for example.swagger2"Function applied to datatype name.swagger2If  the constructors of a datatype, with all nullary constructors, will be encoded to a string enumeration schema with the constructor tags as possible values.swagger2QHide the field name when a record constructor has only one field, like a newtype.swagger2Default encoding .  {  = id ,  = id ,  = id ,  = True ,  = False } swagger2Convert  to .-Specifically the following fields get copied:)Note that these fields have no effect on :The rest is defined as in .  None-.8=>?HUVWX} swagger2Convert a type into a plain .An example type and instance: 8{-# LANGUAGE OverloadedStrings #-} -- allows to write  literals import Control.Lens data Direction = Up | Down instance ToParamSchema Direction where toParamSchema _ = mempty & type_ ?~ SwaggerString & enum_ ?~ [ "Up", "Down" ] !Instead of manually writing your ; instance you can use a default generic implementation of .To do that, simply add  deriving ( clause to your datatype and declare a ; instance for your datatype without giving definition for .?For instance, the previous example can be simplified into this: {-# LANGUAGE DeriveGeneric #-} import GHC.Generics (Generic) data Direction = Up | Down deriving Generic instance ToParamSchema Direction swagger2-Convert a type into a plain parameter schema./encode $ toParamSchema (Proxy :: Proxy Integer)"{\"type\":\"integer\"}"swagger28Default schema for binary data (any sequence of octets).swagger20Default schema for binary data (base64 encoded).swagger2%Default schema for password string.  "password"; format is used to hint UIs the input needs to be obscured.swagger2Default plain schema for ,  types.;encode $ toParamSchemaBoundedIntegral (Proxy :: Proxy Int8)9"{\"maximum\":127,\"minimum\":-128,\"type\":\"integer\"}"swagger2A configurable generic  creator.:set -XDeriveGeneric(data Color = Red | Blue deriving GenericIencode $ genericToParamSchema defaultSchemaOptions (Proxy :: Proxy Color)3"{\"type\":\"string\",\"enum\":[\"Red\",\"Blue\"]}"swagger2*encode $ toParamSchema (Proxy :: Proxy ())("{\"type\":\"string\",\"enum\":[\"_\"]}"swagger20toParamSchema (Proxy :: Proxy UTCTime) ^. formatJust "yyyy-mm-ddThh:MM:ssZ"swagger22toParamSchema (Proxy :: Proxy ZonedTime) ^. formatJust "yyyy-mm-ddThh:MM:ss+hhMM"swagger22toParamSchema (Proxy :: Proxy LocalTime) ^. formatJust "yyyy-mm-ddThh:MM:ss"swagger2Format "date" corresponds to  yyyy-mm-dd format. )Nickolay Kudasov <nickolay@getshoptv.com> experimentalNone~ None ,-.8=>?HPUVWXx(swagger2Convert a type into .An example type and instance: 8{-# LANGUAGE OverloadedStrings #-} -- allows to write B literals {-# LANGUAGE OverloadedLists #-} -- allows to write  and  as lists import Control.Lens import Data.Proxy import Data.Swagger data Coord = Coord { x :: Double, y :: Double } instance ToSchema Coord where declareNamedSchema _ = do doubleSchema <- declareSchemaRef (Proxy :: Proxy Double) return $ NamedSchema (Just "Coord") $ mempty & type_ ?~ SwaggerObject & properties .~ [ ("x", doubleSchema) , ("y", doubleSchema) ] & required .~ [ "x", "y" ] !Instead of manually writing your ; instance you can use a default generic implementation of .To do that, simply add  deriving ( clause to your datatype and declare a ; instance for your datatype without giving definition for .?For instance, the previous example can be simplified into this: {-# LANGUAGE DeriveGeneric #-} import GHC.Generics (Generic) data Coord = Coord { x :: Double, y :: Double } deriving Generic instance ToSchema Coord swagger2Convert a type into an optionally named schema together with all used definitions. Note that the schema itself is included in definitions only if it is recursive (and thus needs its definition in scope).swagger2EConvert a type into a schema and declare all used schema definitions.swagger2/Convert a type into an optionally named schema.-toNamedSchema (Proxy :: Proxy String) ^. nameNothing8encode (toNamedSchema (Proxy :: Proxy String) ^. schema)"{\"type\":\"string\"}"*toNamedSchema (Proxy :: Proxy Day) ^. name Just "Day"5encode (toNamedSchema (Proxy :: Proxy Day) ^. schema)F"{\"example\":\"2016-07-22\",\"format\":\"date\",\"type\":\"string\"}"swagger2(Get type's schema name according to its  instance.schemaName (Proxy :: Proxy Int)Nothing#schemaName (Proxy :: Proxy UTCTime)Just "UTCTime"swagger2Convert a type into a schema.'encode $ toSchema (Proxy :: Proxy Int8)9"{\"maximum\":127,\"minimum\":-128,\"type\":\"integer\"}"(encode $ toSchema (Proxy :: Proxy [Day])A"{\"items\":{\"$ref\":\"#/definitions/Day\"},\"type\":\"array\"}" swagger2yConvert a type into a referenced schema if possible. Only named schemas can be referenced, nameless schemas are inlined.-encode $ toSchemaRef (Proxy :: Proxy Integer)"{\"type\":\"integer\"}")encode $ toSchemaRef (Proxy :: Proxy Day)""{\"$ref\":\"#/definitions/Day\"}"!swagger2Convert a type into a referenced schema if possible and declare all used schema definitions. Only named schemas can be referenced, nameless schemas are inlined.KSchema definitions are typically declared for every referenced schema. If !m returns a reference, a corresponding schema will be declared (regardless of whether it is recusive or not)."swagger2CInline any referenced schema if its name satisfies given predicate.NOTE:j if a referenced schema is not found in definitions the predicate is ignored and schema stays referenced.WARNING: "@ will produce infinite schemas when inlining recursive schemas.#swagger2>Inline any referenced schema if its name is in the given list.NOTE:q if a referenced schema is not found in definitions it stays referenced even if it appears in the list of names.WARNING: #@ will produce infinite schemas when inlining recursive schemas.$swagger2GInline all schema references for which the definition can be found in <.WARNING: $@ will produce infinite schemas when inlining recursive schemas.%swagger20Convert a type into a schema without references./encode $ toInlinedSchema (Proxy :: Proxy [Day])e"{\"items\":{\"example\":\"2016-07-22\",\"format\":\"date\",\"type\":\"string\"},\"type\":\"array\"}"WARNING: %? will produce infinite schema when inlining recursive schemas.&swagger2 Inline all  non-recursive3 schemas for which the definition can be found in <.'swagger28Default schema for binary data (any sequence of octets).(swagger20Default schema for binary data (base64 encoded).)swagger2%Default schema for password string.  "password"; format is used to hint UIs the input needs to be obscured.*swagger2"Make an unrestrictive sketch of a  based on a ? instance. Produced schema can be used for further refinement.encode $ sketchSchema "hello"-"{\"example\":\"hello\",\"type\":\"string\"}"encode $ sketchSchema (1, 2, 3)J"{\"example\":[1,2,3],\"items\":{\"type\":\"number\"},\"type\":\"array\"}""encode $ sketchSchema ("Jack", 25)h"{\"example\":[\"Jack\",25],\"items\":[{\"type\":\"string\"},{\"type\":\"number\"}],\"type\":\"array\"}"Fdata Person = Person { name :: String, age :: Int } deriving (Generic)instance ToJSON Person(encode $ sketchSchema (Person "Jack" 25)"{\"required\":[\"age\",\"name\"],\"properties\":{\"age\":{\"type\":\"number\"},\"name\":{\"type\":\"string\"}},\"example\":{\"age\":25,\"name\":\"Jack\"},\"type\":\"object\"}"+swagger2Make a restrictive sketch of a  based on a A instance. Produced schema uses as much constraints as possible.#encode $ sketchStrictSchema "hello"b"{\"maxLength\":5,\"pattern\":\"hello\",\"minLength\":5,\"type\":\"string\",\"enum\":[\"hello\"]}"%encode $ sketchStrictSchema (1, 2, 3)X"{\"minItems\":3,\"uniqueItems\":true,\"items\":[{\"maximum\":1,\"minimum\":1,\"multipleOf\":1,\"type\":\"number\",\"enum\":[1]},{\"maximum\":2,\"minimum\":2,\"multipleOf\":2,\"type\":\"number\",\"enum\":[2]},{\"maximum\":3,\"minimum\":3,\"multipleOf\":3,\"type\":\"number\",\"enum\":[3]}],\"maxItems\":3,\"type\":\"array\",\"enum\":[[1,2,3]]}"(encode $ sketchStrictSchema ("Jack", 25)!"{\"minItems\":2,\"uniqueItems\":true,\"items\":[{\"maxLength\":4,\"pattern\":\"Jack\",\"minLength\":4,\"type\":\"string\",\"enum\":[\"Jack\"]},{\"maximum\":25,\"minimum\":25,\"multipleOf\":25,\"type\":\"number\",\"enum\":[25]}],\"maxItems\":2,\"type\":\"array\",\"enum\":[[\"Jack\",25]]}"Fdata Person = Person { name :: String, age :: Int } deriving (Generic)instance ToJSON Person.encode $ sketchStrictSchema (Person "Jack" 25)^"{\"required\":[\"age\",\"name\"],\"properties\":{\"age\":{\"maximum\":25,\"minimum\":25,\"multipleOf\":25,\"type\":\"number\",\"enum\":[25]},\"name\":{\"maxLength\":4,\"pattern\":\"Jack\",\"minLength\":4,\"type\":\"string\",\"enum\":[\"Jack\"]}},\"maxProperties\":2,\"minProperties\":2,\"type\":\"object\",\"enum\":[{\"age\":25,\"name\":\"Jack\"}]}"-swagger2Default schema for ,  types.7encode $ toSchemaBoundedIntegral (Proxy :: Proxy Int16)="{\"maximum\":32767,\"minimum\":-32768,\"type\":\"integer\"}".swagger2!Default generic named schema for ,  types./swagger2Declare a named schema for a newtype wrapper.0swagger2Declare  for a mapping with  [ keys. This makes a much more useful schema when there aren't many options for key values.fdata ButtonState = Neutral | Focus | Active | Hover | Disabled deriving (Show, Bounded, Enum, Generic)instance ToJSON ButtonStateinstance ToSchema ButtonStateNinstance ToJSONKey ButtonState where toJSONKey = toJSONKeyText (T.pack . show)type ImageUrl = T.TextRencode $ toSchemaBoundedEnumKeyMapping (Proxy :: Proxy (Map ButtonState ImageUrl))"{\"properties\":{\"Neutral\":{\"type\":\"string\"},\"Focus\":{\"type\":\"string\"},\"Active\":{\"type\":\"string\"},\"Hover\":{\"type\":\"string\"},\"Disabled\":{\"type\":\"string\"}},\"type\":\"object\"}"Note: this is only useful when key is encoded with . If it is encoded with  then a regular schema for [(key, value)] is used.1swagger2A  for a mapping with  [ keys. This makes a much more useful schema when there aren't many options for key values.fdata ButtonState = Neutral | Focus | Active | Hover | Disabled deriving (Show, Bounded, Enum, Generic)instance ToJSON ButtonStateinstance ToSchema ButtonStateNinstance ToJSONKey ButtonState where toJSONKey = toJSONKeyText (T.pack . show)type ImageUrl = T.TextRencode $ toSchemaBoundedEnumKeyMapping (Proxy :: Proxy (Map ButtonState ImageUrl))"{\"properties\":{\"Neutral\":{\"type\":\"string\"},\"Focus\":{\"type\":\"string\"},\"Active\":{\"type\":\"string\"},\"Hover\":{\"type\":\"string\"},\"Disabled\":{\"type\":\"string\"}},\"type\":\"object\"}"Note: this is only useful when key is encoded with . If it is encoded with  then a regular schema for [(key, value)] is used.2swagger2A configurable generic  creator.3swagger2A configurable generic $ creator. This function applied to  is used as the default for " when the type is an instance of .4swagger2A configurable generic  creator.Unlike 2y also works for mixed sum types. Use with care since some Swagger tools do not support well schemas for mixed sum types.5swagger2A configurable generic  creator.Unlike 3y also works for mixed sum types. Use with care since some Swagger tools do not support well schemas for mixed sum types.6swagger2 Derive a 4-based name for a datatype and assign it to a given .8swagger2 Lift a plain  into a model .9swagger2 Lift a plain  into a model .Cswagger2Single field constructor.Rswagger2\swagger2>NOTE: This schema does not account for the uniqueness of keys.aswagger2+toSchema (Proxy :: Proxy UTCTime) ^. formatJust "yyyy-mm-ddThh:MM:ssZ"cswagger2Format "date" corresponds to yyyy-mm-ddThh:MM:ss(Z|+hh:MM) format.dswagger2-toSchema (Proxy :: Proxy LocalTime) ^. formatJust "yyyy-mm-ddThh:MM:ss"eswagger2Format "date" corresponds to  yyyy-mm-dd format.lswagger2For  instance, see  -http://hackage.haskell.org/package/uuid-aeson uuid-aeson package.swagger2Record fields.swagger2Optional record fields./swagger2How to derive the name.swagger2,How to create a schema for the wrapped type.8    !"#$%&'()*+,-./0123456789:;<=>?@AB8 !"#$%&'()*+,-./0123456789:;<=>?@AB   )Nickolay Kudasov <nickolay@getshoptv.com> experimentalNoneD& !"#$%&'()*+-./012345689&! %32/6.-018954)'(*+&$#" )Nickolay Kudasov <nickolay@getshoptv.com> experimentalNoneSXIV swagger2pPrepend path piece to all operations of the spec. Leading and trailing slashes are trimmed/added automatically.<let api = (mempty :: Swagger) & paths .~ [("/info", mempty)]2encode $ prependPath "user/{user_id}" api ^. paths"{\"/user/{user_id}/info\":{}}"swagger2!All operations of a Swagger spec.swagger2 sub: will traverse only those operations that are present in sub . Note that ( is determined by both path and method./let ok = (mempty :: Operation) & at 200 ?~ "OK"Ulet api = (mempty :: Swagger) & paths .~ [("/user", mempty & get ?~ ok & post ?~ ok)]Llet sub = (mempty :: Swagger) & paths .~ [("/user", mempty & get ?~ mempty)] encode api"{\"swagger\":\"2.0\",\"info\":{\"version\":\"\",\"title\":\"\"},\"paths\":{\"/user\":{\"get\":{\"responses\":{\"200\":{\"description\":\"OK\"}}},\"post\":{\"responses\":{\"200\":{\"description\":\"OK\"}}}}}}"7encode $ api & operationsOf sub . at 404 ?~ "Not found""{\"swagger\":\"2.0\",\"info\":{\"version\":\"\",\"title\":\"\"},\"paths\":{\"/user\":{\"get\":{\"responses\":{\"404\":{\"description\":\"Not found\"},\"200\":{\"description\":\"OK\"}}},\"post\":{\"responses\":{\"200\":{\"description\":\"OK\"}}}}}}"swagger2@Apply tags to all operations and update the global list of tags.  =   swagger2IApply tags to a part of Swagger spec and update the global list of tags.swagger2Construct a response with 3 while declaring all necessary schema definitions.Aencode $ runDeclare (declareResponse (Proxy :: Proxy Day)) mempty"[{\"Day\":{\"example\":\"2016-07-22\",\"format\":\"date\",\"type\":\"string\"}},{\"description\":\"\",\"schema\":{\"$ref\":\"#/definitions/Day\"}}]"swagger2RSet response for all operations. This will also update global schema definitions.6If the response already exists it will be overwritten.  =   Example:Llet api = (mempty :: Swagger) & paths .~ [("/user", mempty & get ?~ mempty)].let res = declareResponse (Proxy :: Proxy Day)"encode $ api & setResponse 200 res"{\"swagger\":\"2.0\",\"info\":{\"version\":\"\",\"title\":\"\"},\"paths\":{\"/user\":{\"get\":{\"responses\":{\"200\":{\"schema\":{\"$ref\":\"#/definitions/Day\"},\"description\":\"\"}}}}},\"definitions\":{\"Day\":{\"example\":\"2016-07-22\",\"format\":\"date\",\"type\":\"string\"}}}" See also .swagger2\Set or update response for all operations. This will also update global schema definitions.FIf the response already exists, but it can't be dereferenced (invalid $ref'), then just the new response is used.  =    See also .swagger2XSet response for specified operations. This will also update global schema definitions.6If the response already exists it will be overwritten. See also .swagger2bSet or update response for specified operations. This will also update global schema definitions.FIf the response already exists, but it can't be dereferenced (invalid $ref'), then just the new response is used. See also .   (c) 2015 GetShopTVBSD3)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNone&'.4=?@ACMSWX_oxswagger2Value validation.swagger2Validation configuration.swagger2Pattern checker for  validation.swagger22Schema definitions in scope to resolve references.swagger2Validation result type.swagger20Validation failed with a list of error messages.swagger2Validation passed.swagger2Validation error message.swagger2 Validate  instance matches ] for a given value. This can be used with QuickCheck to ensure those instances are coherent:validateToJSON (x :: Int) == []NOTE: 2 does not perform string pattern validation. See .swagger2 Validate  instance matches q for a given value and pattern checker. This can be used with QuickCheck to ensure those instances are coherent.$For validation without patterns see .swagger2Validate JSON  against Swagger .MvalidateJSON mempty (toSchema (Proxy :: Proxy Int)) (toJSON (x :: Int)) == []NOTE: 2 does not perform string pattern validation. See .swagger2Validate JSON  agains Swagger ' for a given value and pattern checker.$For validation without patterns see .swagger2Default : defaultConfig =  {  = \_pattern _str -> True ,  = mempty } swagger2Issue an error message.swagger2Validation passed.swagger2QValidate schema's property given a lens into that property and property checker.swagger2Validate schema's property given a lens into that property and property checker. If property is missing in schema, consider it valid.swagger2*Validate same value with different schema.swagger27Validate same value with a part of the original schema.swagger2OValidate value against a schema given schema reference and validation function.swagger2Validate JSON  with Swagger .swagger2Validate JSON  with Swagger .swagger2+Infer schema type based on used properties. This is like , but also works for objects:4inferSchemaTypes <$> decode "{\"minProperties\": 1}"Just [SwaggerObject]swagger2+Infer schema type based on used properties.0inferSchemaTypes <$> decode "{\"minLength\": 2}"Just [SwaggerString]/inferSchemaTypes <$> decode "{\"maxItems\": 0}"Just [SwaggerArray]From numeric properties  type is inferred. If you want ) instead, you must specify it explicitly..inferSchemaTypes <$> decode "{\"minimum\": 1}"Just [SwaggerInteger]'')Nickolay Kudasov <nickolay@getshoptv.com> experimentalNoneq)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNonerVWXYZ[\^]_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<    !"#$%&,-./0123456789:;<=NOPQRSTUVWXYZ[\]^_`abcdefghijklm~ !"#$%&'()*+-./012345689,-./0123456789:;$%&'()*+ !"#     fghijk<VWXopqrstuvlmnwxyz{|}~bcde_`a\^]YZ[ None &'Xswagger2Note:  may ;, if schema type is not specified, and cannot be inferred. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghiijklmnnoppqrsstuvwxxyzz{|}~      !"##$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~`      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                       ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                                                              #swagger2-2.4-7GGQol8nqP59uwH1hSShKyData.Swagger.Declare Data.Swagger.Internal.AesonUtilsData.Swagger.Internal.TypeShapeData.Swagger.Internal.UtilsData.Swagger.InternalData.Swagger.LensData.Swagger.SchemaOptions!Data.Swagger.Internal.ParamSchemaData.Swagger.Internal.SchemaData.Swagger.Operation'Data.Swagger.Internal.Schema.ValidationData.Swagger.Schema.GeneratorData.Swagger.ParamSchemaData.Swagger.SchemaData.Swagger.Schema.Validation Data.SwaggerDeclare MonadDeclaredeclarelookDeclareT runDeclareT liftDeclarelooks evalDeclareT execDeclareT undeclareT runDeclare evalDeclare execDeclare undeclare$fMonadTransDeclareT$fMonadDeclareT$fApplicativeDeclareT$fMonadDeclaredWriterT$fMonadDeclaredWriterT0$fMonadDeclaredStateT$fMonadDeclaredStateT0$fMonadDeclaredRWST$fMonadDeclaredRWST0$fMonadDeclaredReaderT$fMonadDeclaredMaybeT$fMonadDeclaredListT$fMonadDeclaredIdentityT$fMonadDeclaredExceptT$fMonadDeclaredContT$fMonadDeclaredDeclareT$fFunctorDeclareTSwaggerAesonOptionsmkSwaggerAesonOptionsAesonDefaultValue defaultValueHasSwaggerAesonOptionsswaggerAesonOptions aesonDefaultssaoAdditionalPairs saoPrefix saoSubObjectsopSwaggerGenericToJSONsopSwaggerGenericToJSONWithOptssopSwaggerGenericParseJSONsopSwaggerGenericToEncoding $fAesonDefaultValueInsOrdHashMap $fAesonDefaultValueInsOrdHashSet$fAesonDefaultValueSet$fAesonDefaultValue[]$fAesonDefaultValueMaybe$fAesonDefaultValueText GenericShapeGenericHasSimpleShapeTypeHasSimpleShape SumCombine ProdCombine TypeShape Enumeration SumOfProductsMixed SwaggerMonoid swaggerMemptyswaggerMappendGMonoidgmemptygmappendswaggerFieldRules gunfoldEnum jsonPrefix parseOneOf<+> genericMemptygenericMappend $fGMonoidM1 $fGMonoid:*: $fGMonoidU1$fSwaggerMonoidMaybe$fSwaggerMonoidText$fSwaggerMonoidInsOrdHashMap$fSwaggerMonoidHashMap$fSwaggerMonoidMap$fSwaggerMonoidSet$fSwaggerMonoid[] $fGMonoidK1AdditionalPropertiesAdditionalPropertiesAllowedAdditionalPropertiesSchemaURLgetUrl ReferencedRefInline Reference getReference ExternalDocs_externalDocsDescription_externalDocsUrlTag_tagName_tagDescription_tagExternalDocsTagNameSecurityRequirementgetSecurityRequirementSecurityScheme_securitySchemeType_securitySchemeDescriptionSecuritySchemeTypeSecuritySchemeBasicSecuritySchemeApiKeySecuritySchemeOAuth2 OAuth2Params _oauth2Flow _oauth2Scopes OAuth2FlowOAuth2ImplicitOAuth2PasswordOAuth2ApplicationOAuth2AccessCodeTokenURLAuthorizationURL ApiKeyParams _apiKeyName _apiKeyInApiKeyLocation ApiKeyQuery ApiKeyHeaderExample getExampleHeader_headerDescription_headerParamSchema HeaderNameResponse_responseDescription_responseSchema_responseHeaders_responseExamplesHttpStatusCode Responses_responsesDefault_responsesResponsesXml_xmlName _xmlNamespace _xmlPrefix _xmlAttribute _xmlWrapped ParamSchema_paramSchemaDefault_paramSchemaType_paramSchemaFormat_paramSchemaItems_paramSchemaMaximum_paramSchemaExclusiveMaximum_paramSchemaMinimum_paramSchemaExclusiveMinimum_paramSchemaMaxLength_paramSchemaMinLength_paramSchemaPattern_paramSchemaMaxItems_paramSchemaMinItems_paramSchemaUniqueItems_paramSchemaEnum_paramSchemaMultipleOfPattern NamedSchema_namedSchemaName_namedSchemaSchemaSchema _schemaTitle_schemaDescription_schemaRequired _schemaAllOf_schemaProperties_schemaAdditionalProperties_schemaDiscriminator_schemaReadOnly _schemaXml_schemaExternalDocs_schemaExample_schemaMaxProperties_schemaMinProperties_schemaParamSchema ParamNameCollectionFormat CollectionCSV CollectionSSV CollectionTSVCollectionPipesCollectionMultiFormat ParamLocation ParamQuery ParamHeader ParamPath ParamFormData SwaggerType SwaggerString SwaggerNumberSwaggerIntegerSwaggerBoolean SwaggerArray SwaggerFile SwaggerNull SwaggerObjectSwaggerKindType SwaggerKindSwaggerKindNormalSwaggerKindParamOtherSchemaSwaggerKindSchema SwaggerItemsSwaggerItemsPrimitiveSwaggerItemsObjectSwaggerItemsArrayParamOtherSchema_paramOtherSchemaIn _paramOtherSchemaAllowEmptyValue_paramOtherSchemaParamSchemaParamAnySchema ParamBody ParamOtherParam _paramName_paramDescription_paramRequired _paramSchemaMimeList getMimeList Operation_operationTags_operationSummary_operationDescription_operationExternalDocs_operationOperationId_operationConsumes_operationProduces_operationParameters_operationResponses_operationSchemes_operationDeprecated_operationSecurityPathItem _pathItemGet _pathItemPut _pathItemPost_pathItemDelete_pathItemOptions _pathItemHead_pathItemPatch_pathItemParametersSchemeHttpHttpsWsWssHost _hostName _hostPortLicense _licenseName _licenseUrlContact _contactName _contactUrl _contactEmailInfo _infoTitle_infoDescription_infoTermsOfService _infoContact _infoLicense _infoVersionSwagger _swaggerInfo _swaggerHost_swaggerBasePath_swaggerSchemes_swaggerConsumes_swaggerProduces _swaggerPaths_swaggerDefinitions_swaggerParameters_swaggerResponses_swaggerSecurityDefinitions_swaggerSecurity _swaggerTags_swaggerExternalDocs Definitions hostConstr hostDataTypemimeListConstrmimeListDataTypeswaggerItemsPrimitiveConstrswaggerItemsObjectConstrswaggerItemsArrayConstrswaggerItemsDataTypeswaggerTypeConstrswaggerTypeDataTypeswaggerCommonTypesswaggerParamTypesswaggerSchemaTypesswaggerTypeConstrscollectionFormatConstrcollectionFormatDataTypecollectionCommonFormats exampleConstrexampleDataTypereferencedToJSONreferencedParseJSON$fSwaggerMonoidInsOrdHashSet$fFromJSONHost $fToJSONHost $fDataHost$fIsStringHost$fFromJSONScheme$fToJSONScheme$fFromJSONMimeList$fToJSONMimeList$fSwaggerMonoidMimeList$fDataMimeList$fFromJSONSwaggerType$fFromJSONSwaggerType0$fFromJSONSwaggerType1$fToJSONSwaggerType$fSwaggerMonoidSwaggerType$fDataSwaggerType$fDataSwaggerType0$fDataSwaggerType1$fFromJSONParamLocation$fToJSONParamLocation$fSwaggerMonoidParamLocation$fFromJSONCollectionFormat$fFromJSONCollectionFormat0$fToJSONCollectionFormat$fDataCollectionFormat $fFromJSONXml $fToJSONXml$fFromJSONExample$fToJSONExample$fMonoidExample$fSemigroupExample $fDataExample$fFromJSONApiKeyLocation$fToJSONApiKeyLocation$fFromJSONApiKeyParams$fToJSONApiKeyParams$fFromJSONOAuth2Flow$fToJSONOAuth2Flow$fFromJSONOAuth2Params$fToJSONOAuth2Params$fFromJSONSecuritySchemeType$fToJSONSecuritySchemeType$fFromJSONSecurityScheme$fToJSONSecurityScheme$fFromJSONReference$fToJSONReference$fSwaggerMonoidReferenced$fIsStringReferenced$fFromJSONExternalDocs$fToJSONExternalDocs$fSwaggerMonoidExternalDocs$fMonoidExternalDocs$fSemigroupExternalDocs$fHashableExternalDocs $fFromJSONTag $fToJSONTag $fIsStringTag $fHashableTag$fFromJSONLicense$fToJSONLicense$fIsStringLicense$fFromJSONContact$fToJSONContact$fMonoidContact$fSemigroupContact$fFromJSONInfo $fToJSONInfo$fSwaggerMonoidInfo $fMonoidInfo$fSemigroupInfo$fFromJSONAdditionalProperties$fFromJSONParamSchema$fFromJSONParamSchema0$fFromJSONParamSchema1$fFromJSONReferenced$fFromJSONSwaggerItems$fFromJSONSwaggerItems0$fFromJSONSwaggerItems1$fFromJSONSchema$fToJSONAdditionalProperties$fToJSONParamSchema$fToJSONReferenced$fToJSONSwaggerItems$fToJSONSchema$fSwaggerMonoidParamSchema$fSwaggerMonoidSchema$fMonoidParamSchema$fSemigroupParamSchema$fMonoidSchema$fSemigroupSchema$fDataSwaggerItems$fDataSwaggerItems0$fDataSwaggerItems1$fFromJSONHeader$fToJSONHeader$fMonoidHeader$fSemigroupHeader$fFromJSONReferenced0$fFromJSONResponse$fToJSONReferenced0$fToJSONResponse$fSwaggerMonoidResponse$fMonoidResponse$fSemigroupResponse$fIsStringResponse$fFromJSONResponses$fToJSONResponses$fSwaggerMonoidResponses$fMonoidResponses$fSemigroupResponses$fFromJSONParamOtherSchema$fToJSONParamOtherSchema$fSwaggerMonoidParamOtherSchema$fMonoidParamOtherSchema$fSemigroupParamOtherSchema$fFromJSONParamAnySchema$fToJSONParamAnySchema$fSwaggerMonoidParamAnySchema$fFromJSONReferenced1$fFromJSONParam$fToJSONReferenced1 $fToJSONParam$fSwaggerMonoidParam $fMonoidParam$fSemigroupParam$fFromJSONOperation$fToJSONOperation$fSwaggerMonoidOperation$fMonoidOperation$fSemigroupOperation$fFromJSONPathItem$fToJSONPathItem$fSwaggerMonoidPathItem$fMonoidPathItem$fSemigroupPathItem$fFromJSONSwagger$fToJSONSwagger$fMonoidSwagger$fSemigroupSwagger$fEqHost $fShowHost $fGenericHost $fEqScheme $fShowScheme$fGenericScheme $fDataScheme $fEqMimeList$fShowMimeList$fSemigroupMimeList$fMonoidMimeList$fEqParamLocation$fShowParamLocation$fGenericParamLocation$fDataParamLocation$fEqXml $fShowXml $fGenericXml $fDataXml $fEqExample $fShowExample$fGenericExample$fEqApiKeyLocation$fShowApiKeyLocation$fGenericApiKeyLocation$fDataApiKeyLocation$fEqApiKeyParams$fShowApiKeyParams$fGenericApiKeyParams$fDataApiKeyParams$fEqOAuth2Flow$fShowOAuth2Flow$fGenericOAuth2Flow$fDataOAuth2Flow$fEqOAuth2Params$fShowOAuth2Params$fGenericOAuth2Params$fDataOAuth2Params$fEqSecuritySchemeType$fShowSecuritySchemeType$fGenericSecuritySchemeType$fDataSecuritySchemeType$fEqSecurityScheme$fShowSecurityScheme$fGenericSecurityScheme$fDataSecurityScheme$fEqSecurityRequirement$fReadSecurityRequirement$fShowSecurityRequirement$fSemigroupSecurityRequirement$fMonoidSecurityRequirement$fToJSONSecurityRequirement$fFromJSONSecurityRequirement$fDataSecurityRequirement $fEqReference$fShowReference$fDataReference$fEqReferenced$fShowReferenced$fFunctorReferenced$fDataReferenced$fEqURL$fOrdURL $fShowURL $fHashableURL $fToJSONURL $fFromJSONURL $fDataURL$fEqExternalDocs$fOrdExternalDocs$fShowExternalDocs$fGenericExternalDocs$fDataExternalDocs$fEqTag$fOrdTag $fShowTag $fGenericTag $fDataTag $fEqLicense $fShowLicense$fGenericLicense $fDataLicense $fEqContact $fShowContact$fGenericContact $fDataContact$fEqInfo $fShowInfo $fGenericInfo $fDataInfo$fEqAdditionalProperties$fShowAdditionalProperties$fDataAdditionalProperties $fEqSchema $fShowSchema$fGenericSchema $fDataSchema$fEqParamSchema$fShowParamSchema$fGenericParamSchema$fEqNamedSchema$fShowNamedSchema$fGenericNamedSchema$fDataNamedSchema $fEqHeader $fShowHeader$fGenericHeader $fDataHeader $fEqResponse$fShowResponse$fGenericResponse$fDataResponse $fEqResponses$fShowResponses$fGenericResponses$fDataResponses$fEqParamOtherSchema$fShowParamOtherSchema$fGenericParamOtherSchema$fDataParamOtherSchema$fEqParamAnySchema$fShowParamAnySchema$fGenericParamAnySchema$fDataParamAnySchema $fEqParam $fShowParam$fGenericParam $fDataParam $fEqOperation$fShowOperation$fGenericOperation$fDataOperation $fEqPathItem$fShowPathItem$fGenericPathItem$fDataPathItem $fEqSwagger $fShowSwagger$fGenericSwagger $fDataSwagger$fSwaggerMonoidURL$fDataParamSchema$fDataCollectionFormat0$fShowCollectionFormat$fEqCollectionFormat$fShowSwaggerType$fEqSwaggerType$fShowSwaggerItems$fEqSwaggerItems$fHasDatatypeInfoHeader$fGenericHeader0$fHasDatatypeInfoOAuth2Params$fGenericOAuth2Params0$fHasDatatypeInfoOperation$fGenericOperation0$fHasDatatypeInfoParam$fGenericParam0!$fHasDatatypeInfoParamOtherSchema$fGenericParamOtherSchema0$fHasDatatypeInfoPathItem$fGenericPathItem0$fHasDatatypeInfoResponse$fGenericResponse0$fHasDatatypeInfoResponses$fGenericResponses0$fHasDatatypeInfoSecurityScheme$fGenericSecurityScheme0$fHasDatatypeInfoSchema$fGenericSchema0$fHasDatatypeInfoParamSchema$fGenericParamSchema0 $fAesonDefaultValueParamLocation$fAesonDefaultValueInfo$fAesonDefaultValueMimeList$fAesonDefaultValueSwaggerType%$fAesonDefaultValueSecuritySchemeType!$fAesonDefaultValueParamAnySchema$fAesonDefaultValueResponses$fAesonDefaultValueOAuth2Flow$fAesonDefaultValueParamSchema#$fHasSwaggerAesonOptionsParamSchema$$fHasSwaggerAesonOptionsParamSchema0$$fHasSwaggerAesonOptionsParamSchema1$fHasSwaggerAesonOptionsSwagger$fHasSwaggerAesonOptionsSchema&$fHasSwaggerAesonOptionsSecurityScheme!$fHasSwaggerAesonOptionsResponses $fHasSwaggerAesonOptionsResponse $fHasSwaggerAesonOptionsPathItem($fHasSwaggerAesonOptionsParamOtherSchema$fHasSwaggerAesonOptionsParam!$fHasSwaggerAesonOptionsOperation$$fHasSwaggerAesonOptionsOAuth2Params$fHasSwaggerAesonOptionsHeader$fHasDatatypeInfoSwagger$fGenericSwagger0HasTagstagsHasSecurityDefinitionssecurityDefinitions HasSecuritysecurity HasSchemesschemes HasResponses responses HasProducesproducesHasPathspaths HasParameters parametersHasInfoinfoHasHosthostHasExternalDocs externalDocsHasDefinitions definitions HasConsumesconsumes HasBasePathbasePath$fHasBasePathSwaggerMaybe$fHasConsumesSwaggerMimeList$$fHasDefinitionsSwaggerInsOrdHashMap$fHasExternalDocsSwaggerMaybe$fHasHostSwaggerMaybe$fHasInfoSwaggerInfo#$fHasParametersSwaggerInsOrdHashMap$fHasPathsSwaggerInsOrdHashMap$fHasProducesSwaggerMimeList"$fHasResponsesSwaggerInsOrdHashMap$fHasSchemesSwaggerMaybe$fHasSecuritySwagger[],$fHasSecurityDefinitionsSwaggerInsOrdHashMap$fHasTagsSwaggerInsOrdHashSetHasPortportHasNamename$fHasNameHost[]$fHasPortHostMaybe HasVersionversionHasTitletitleHasTermsOfServicetermsOfService HasLicenselicenseHasDescription description HasContactcontact$fHasContactInfoMaybe$fHasDescriptionInfoMaybe$fHasLicenseInfoMaybe$fHasTermsOfServiceInfoMaybe$fHasTitleInfoText$fHasVersionInfoTextHasUrlurlHasEmailemail$fHasNameContactMaybe$fHasEmailContactMaybe$fHasUrlContactMaybe$fHasUrlLicenseMaybe$fHasNameLicenseTextHasPutputHasPostpostHasPatchpatch HasOptionsoptionsHasHeadhead_HasGetget HasDeletedelete$fHasParametersPathItem[]$fHasDeletePathItemMaybe$fHasGetPathItemMaybe$fHasHeadPathItemMaybe$fHasOptionsPathItemMaybe$fHasPatchPathItemMaybe$fHasPostPathItemMaybe$fHasPutPathItemMaybe$fHasNameTagText$fHasExternalDocsTagMaybe$fHasDescriptionTagMaybe HasSummarysummaryHasOperationId operationId HasDeprecated deprecated$fHasTagsOperationInsOrdHashSet$fHasSecurityOperation[]$fHasSchemesOperationMaybe $fHasResponsesOperationResponses$fHasProducesOperationMaybe$fHasParametersOperation[]$fHasExternalDocsOperationMaybe$fHasDescriptionOperationMaybe$fHasConsumesOperationMaybe$fHasDeprecatedOperationMaybe$fHasOperationIdOperationMaybe$fHasSummaryOperationMaybe HasSchemaschema HasRequiredrequired$fHasNameParamText$fHasDescriptionParamMaybe$fHasRequiredParamMaybe$fHasSchemaParamParamAnySchemaHasParamSchema paramSchemaHasInin_HasAllowEmptyValueallowEmptyValue)$fHasAllowEmptyValueParamOtherSchemaMaybe$$fHasInParamOtherSchemaParamLocation+$fHasParamSchemaParamOtherSchemaParamSchema!$fHasParamSchemaHeaderParamSchema$fHasDescriptionHeaderMaybeHasXmlxml HasReadOnlyreadOnly HasProperties propertiesHasMinProperties minPropertiesHasMaxProperties maxProperties HasExampleexampleHasDiscriminator discriminatorHasAllOfallOfHasAdditionalPropertiesadditionalProperties$fHasTitleSchemaMaybe$fHasRequiredSchema[]!$fHasParamSchemaSchemaParamSchema$fHasExternalDocsSchemaMaybe$fHasDescriptionSchemaMaybe$$fHasAdditionalPropertiesSchemaMaybe$fHasAllOfSchemaMaybe$fHasDiscriminatorSchemaMaybe$fHasExampleSchemaMaybe$fHasMaxPropertiesSchemaMaybe$fHasMinPropertiesSchemaMaybe"$fHasPropertiesSchemaInsOrdHashMap$fHasReadOnlySchemaMaybe$fHasXmlSchemaMaybe$fHasSchemaNamedSchemaSchema$fHasNameNamedSchemaMaybeHasUniqueItems uniqueItemsHasTypetype_ HasPatternpattern HasMultipleOf multipleOf HasMinimumminimum_ HasMinLength minLength HasMinItemsminItems HasMaximummaximum_ HasMaxLength maxLength HasMaxItemsmaxItemsHasItemsitems HasFormatformatHasExclusiveMinimumexclusiveMinimumHasExclusiveMaximumexclusiveMaximumHasEnumenum_ HasDefaultdefault_$fHasDefaultParamSchemaMaybe$fHasEnumParamSchemaMaybe%$fHasExclusiveMaximumParamSchemaMaybe%$fHasExclusiveMinimumParamSchemaMaybe$fHasFormatParamSchemaMaybe$fHasItemsParamSchemaMaybe$fHasMaxItemsParamSchemaMaybe$fHasMaxLengthParamSchemaMaybe$fHasMaximumParamSchemaMaybe$fHasMinItemsParamSchemaMaybe$fHasMinLengthParamSchemaMaybe$fHasMinimumParamSchemaMaybe$fHasMultipleOfParamSchemaMaybe$fHasPatternParamSchemaMaybe$fHasTypeParamSchemaMaybe $fHasUniqueItemsParamSchemaMaybe HasWrappedwrapped HasPrefixprefix HasNamespace namespace HasAttribute attribute$fHasNameXmlMaybe$fHasAttributeXmlMaybe$fHasNamespaceXmlMaybe$fHasPrefixXmlMaybe$fHasWrappedXmlMaybe$$fHasResponsesResponsesInsOrdHashMap$fHasDefaultResponsesMaybe HasHeadersheaders HasExamplesexamples$fHasSchemaResponseMaybe$fHasDescriptionResponseText$fHasExamplesResponseMaybe!$fHasHeadersResponseInsOrdHashMap)$fHasTypeSecuritySchemeSecuritySchemeType#$fHasDescriptionSecuritySchemeMaybe$fHasUrlExternalDocsURL!$fHasDescriptionExternalDocsMaybe _ParamBody _ParamOther_SecuritySchemeBasic_SecuritySchemeApiKey_SecuritySchemeOAuth2_Ref_Inline_SwaggerItemsArray_SwaggerItemsObject_SwaggerItemsPrimitive$fHasMultipleOfsMaybe$fHasEnumsMaybe$fHasUniqueItemssMaybe$fHasMinItemssMaybe$fHasMaxItemssMaybe$fHasPatternsMaybe$fHasMinLengthsMaybe$fHasMaxLengthsMaybe$fHasExclusiveMinimumsMaybe$fHasMinimumsMaybe$fHasExclusiveMaximumsMaybe$fHasMaximumsMaybe$fHasItemssMaybe$fHasFormatsMaybe!$fHasDefaultParamOtherSchemaMaybe$fHasDefaultSchemaMaybe$fHasDefaultHeaderMaybe$fHasTypeParamOtherSchemaMaybe$fHasTypeNamedSchemaMaybe$fHasTypeSchemaMaybe$fHasTypeHeaderMaybe&$fHasParamSchemaNamedSchemaParamSchema $fAtOperation$fIxedOperation $fAtResponses$fIxedResponses SchemaOptionsfieldLabelModifierconstructorTagModifierdatatypeNameModifierallNullaryToStringTagunwrapUnaryRecordsdefaultSchemaOptionsfromAesonOptionsProxy3GEnumParamSchemagenumParamSchemaGToParamSchemagtoParamSchemaToParamSchemaByteStringError ToParamSchema toParamSchemabinaryParamSchemabyteParamSchemapasswordParamSchematoParamSchemaBoundedIntegraltimeParamSchemagenericToParamSchema$fGToParamSchemaM1$fGToParamSchemaM10$fGToParamSchemaK1$fToParamSchemaUUID$fToParamSchema()$fToParamSchemaHashSet$fToParamSchemaSet$fToParamSchemaVector$fToParamSchemaVector0$fToParamSchemaVector1$fToParamSchemaVector2$fToParamSchema[]$fToParamSchemaIdentity$fToParamSchemaDual$fToParamSchemaLast$fToParamSchemaFirst$fToParamSchemaProduct$fToParamSchemaSum$fToParamSchemaAny$fToParamSchemaAll$fToParamSchemaSetCookie$fToParamSchemaVersion$fToParamSchemaText$fToParamSchemaText0$fToParamSchemaNominalDiffTime$fToParamSchemaUTCTime$fToParamSchemaZonedTime$fToParamSchemaLocalTime$fToParamSchemaDay$fToParamSchemaFloat$fToParamSchemaDouble$fToParamSchemaFixed$fToParamSchemaScientific$fToParamSchemaChar$fToParamSchemaWord64$fToParamSchemaWord32$fToParamSchemaWord16$fToParamSchemaWord8$fToParamSchemaWord$fToParamSchemaInt64$fToParamSchemaInt32$fToParamSchemaInt16$fToParamSchemaInt8$fToParamSchemaInt$fToParamSchemaNatural$fToParamSchemaInteger$fToParamSchemaBool$fToParamSchema[]0$fToParamSchemaByteString$fToParamSchemaByteString0$fGEnumParamSchema:+:$fGToParamSchema:+:$fGToParamSchemaM11$fGEnumParamSchemaM1Proxy2 GSumToSchema gsumToSchema AllNullaryToSchemaByteStringError GToSchemagdeclareNamedSchemaToSchemadeclareNamedSchemaunnamednamedplainunnamerename declareSchema toNamedSchema schemaNametoSchema toSchemaRefdeclareSchemaRefinlineSchemasWhen inlineSchemasinlineAllSchemastoInlinedSchemainlineNonRecursiveSchemas binarySchema byteSchemapasswordSchema sketchSchemasketchStrictSchema timeSchematoSchemaBoundedIntegral#genericToNamedSchemaBoundedIntegral genericDeclareNamedSchemaNewtype"declareSchemaBoundedEnumKeyMappingtoSchemaBoundedEnumKeyMappinggenericDeclareSchemagenericDeclareNamedSchema genericDeclareSchemaUnrestricted%genericDeclareNamedSchemaUnrestrictedgenericNameSchemagdatatypeSchemaNameparamSchemaToNamedSchemaparamSchemaToSchema nullarySchemagtoNamedSchemagdeclareSchemagdeclareSchemaRef appendItemwithFieldSchemagdeclareNamedSumSchemagsumConToSchemaWithgsumConToSchema $fGToSchemaM1$fGToSchemaM10$fGToSchemaM11$fGToSchemaM12$fGToSchema:*: $fGToSchemaK1$fGToSchemaK10$fToSchemaIdentity$fToSchemaDual$fToSchemaLast$fToSchemaFirst$fToSchemaProduct $fToSchemaSum $fToSchemaAny $fToSchemaAll$fToSchemaNonEmpty$fToSchemaHashSet $fToSchemaSet$fToSchemaVector$fToSchemaVector0$fToSchemaVector1$fToSchemaVector2$fToSchemaHashMap$fToSchemaHashMap0 $fToSchemaMap$fToSchemaIntMap$fToSchemaIntSet$fToSchemaVersion$fToSchemaText$fToSchemaText0$fToSchemaUTCTime$fToSchemaNominalDiffTime$fToSchemaZonedTime$fToSchemaLocalTime $fToSchemaDay$fToSchema(,,,,,,)$fToSchema(,,,,,)$fToSchema(,,,,)$fToSchema(,,,)$fToSchema(,,) $fToSchema(,)$fToSchemaUUID $fToSchema()$fToSchemaEither$fToSchemaMaybe$fToSchemaFixed$fToSchemaFloat$fToSchemaDouble$fToSchemaScientific$fToSchemaChar$fToSchemaWord64$fToSchemaWord32$fToSchemaWord16$fToSchemaWord8$fToSchemaWord$fToSchemaInt64$fToSchemaInt32$fToSchemaInt16$fToSchemaInt8 $fToSchemaInt$fToSchemaNatural$fToSchemaInteger$fToSchemaBool $fToSchema[] $fToSchema[]0$fToSchemaByteString$fToSchemaByteString0$fGSumToSchemaM1$fGSumToSchemaM10$fGSumToSchemaM11$fGSumToSchema:+:$fGToSchema:+:$fGToSchemaM13$fGToSchemaM14 prependPath allOperations operationsOf applyTags applyTagsFordeclareResponse setResponsesetResponseWithsetResponseForsetResponseForWith Validation runValidationConfigconfigPatternCheckerconfigDefinitionsResultFailedPassedValidationErrorvalidateToJSON validateToJSONWithPatternChecker validateJSONvalidateJSONWithPatternChecker defaultConfig withConfig withSchemainvalidvalid checkMissingchecksubsub_withRefvalidateWithSchemaRefvalidateWithSchemavalidateWithParamSchemavalidateIntegervalidateNumbervalidateString validateArrayvalidateObject validateEnuminferSchemaTypesinferParamSchemaTypesvalidateSchemaTypevalidateParamSchemaTypeshowType $fMonadResult$fAlternativeResult$fApplicativeResult$fMonadValidation$fChoiceValidation$fProfunctorValidation$fAlternativeValidation$fApplicativeValidation $fEqResult $fShowResult$fFunctorResult$fFunctorValidation schemaGengenValuevalidateFromJSONbaseGHC.Basefmapghc-prim GHC.TypesTrue$aeson-1.4.3.0-CKhfOL9YUanCoDzOlq0iJCData.Aeson.Types.InternalOptionsomitNothingFields sumEncodingtagSingleConstructors text-1.2.3.1Data.Text.InternalText Data.Text.Lazy.Builder.RealFloatFPFormatGHC.EnumBoundedGHC.RealIntegralcontainers-0.6.0.1Data.Map.InternalMap4unordered-containers-0.2.10.0-LgoTL3wbBEY5bZIDJiyxW4Data.HashMap.BaseHashMap GHC.GenericsGenericData.Aeson.Types.ToJSONToJSONEnum ToJSONKeyTextToJSONKeyValueValueGHC.Errerror