WG      !"#$%&'()*+,-./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> experimentalSafe3;=>?AX} 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.Definitions 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 m x' is an action that produces the output x.1 is an action that returns all the output so far.,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.1Lift a computation from the simple Declare monad.-Retrieve a function of all the output so far.  Evaluate  d m a# computation, ignoring new output d. Execute DeclateT d m a= computation, ignoring result and only producing new output d.  Evaluate  d m a2 computation, starting with empty output history. Run  d a! computation with output history d, producing result a and new output d.  Evaluate  d a computation, ignoring output d.Execute Declate d a9 computation, ignoring result and only producing output d. Evaluate  d m a2 computation, starting with empty output history.   None &'-<V^+*Generic serialisation for swagger records.Features:omits nulls, empty objects and empty arrays (configurable)possible to add fieldspossible to merge sub-object,BTODO:* This is only used by ToJSON (ParamSchema SwaggerKindSchema)Also uses default '"prefix!"#$%&'()*+,-.#$+.,-%&'!")(*!#$%&'None +-FSTcT4Infer a 9( for a generic representation of a type.7 A combined shape for a sum type.8$A combined shape for a product type.9Shape of a datatype.:A simple enumeration.;(A product or a sum of non-unit products.<8Mixed sum type with both unit and non-unit constructors. 456789<;: 9:;<876549:;<None 7;<=QSTVd- =?>@ABCDEFGHICDEFGHI@ABLKTJ=>?>?SRQPONM=>?>?@ABNone"#&'-013456;<=FKTV%j[A 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.^CAllows referencing an external resource for extended documentation.`fA short description of the target documentation. GFM syntax can be used for rich text representation.a%The URL for the target documentation.b8Allows adding meta data to a single tag that is used by  Operation!. It is not mandatory to have a Tag per tag used there.dThe name of the tag.eVA short description for the tag. GFM syntax can be used for rich text representation.f/Additional external documentation for this tag.g Tag name.hLists 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).m The type of the security scheme.n(A short description for security scheme.u,The flow used by the OAuth2 security scheme.v4The available scopes for the OAuth2 security scheme.|NThe token URL to be used for OAuth2 flow. This SHOULD be in the form of a URL.}VThe authorization URL to be used for OAuth2 flow. This SHOULD be in the form of a URL.5The name of the header or query parameter to be used.The location of the API key.The location of the API key."A short description of the header.2Describes a single response from an API Operation.ZA short description of the response. GFM syntax can be used for rich text representation.;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.2A list of headers that are sent with the response.#An example of the response message.tA 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.The documentation of responses other than the ones declared for specific HTTP response codes. It can be used to cover undeclared responses.Any 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.lReplaces 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.KThe URL of the namespace definition. Value SHOULD be in the form of a URL.#The prefix to be used for the name.mDeclares whether the property definition translates to an attribute instead of an element. Default value is False.aMAY 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).aDeclares 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.Regex pattern for string type.A = with an optional name. This name can be used in references.#Determines the format of the array.:Parameters that are appended to the URL. For example, in  /items?id=###, the query parameter is id.8Custom headers that are expected as part of the request.Used 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.<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).3Type used as a kind to avoid overlapping instances. 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.The location of the parameter.QSets 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.oDescribes a single operation parameter. A unique parameter is defined by a combination of a name and location.?The name of the parameter. Parameter names are case sensitive.A brief description of the parameter. This could contain examples of use. GFM syntax can be used for rich text representation.Determines 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.Parameter schema.+Describes a single API operation on a path.A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.fA verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.5Additional external documentation for this operation.Unique 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.DA list of MIME types the operation can consume. This overrides the consumes. Just [], MAY be used to clear the global definition.DA list of MIME types the operation can produce. This overrides the produces. Just [], MAY be used to clear the global definition.gA 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.RThe list of possible responses as they are returned from executing this operation.>The transfer protocol for the operation. The value overrides schemes.rDeclares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is False.BA 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.8Describes 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.-A definition of a GET operation on this path.-A definition of a PUT operation on this path..A definition of a POST operation on this path. 0A definition of a DELETE operation on this path. 1A definition of a OPTIONS operation on this path. .A definition of a HEAD operation on this path. /A definition of a PATCH operation on this path. -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.!The transfer protocol of the API.=The host (name or ip) serving the API. It MAY include a port. Host name.Optional port.(License information for the exposed API."The license name used for the API.&A URL to the license used for the API.(Contact information for the exposed API.8The identifying name of the contact person/organization.,The URL pointing to the contact information.5The email address of the contact person/organization. The 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."The title of the application.#]A short description of the application. GFM syntax can be used for rich text representation.$!The Terms of Service for the API.%,The contact information for the exposed API.&,The license information for the exposed API.'aProvides the version of the application API (not to be confused with the specification version).(;This is the root document object for the API specification.*TProvides metadata about the API. The metadata can be used by the clients if needed.+The 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).,The 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 (/).-The 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..sA list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls./sA list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls.0The 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.1AAn object to hold data types produced and consumed by operations.2An object to hold parameters that can be used across operations. This property does not define global parameters for all operations.3An object to hold responses that can be used across operations. This property does not define global responses for all operations.4FSecurity scheme definitions that can be used across the specification.5A 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.6^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.7"Additional external documentation.85A list of definitions that can be used in references.UVWXYZ[\]^_a`bcfedghijklnmorqpstvuw{zyx|}~      !'&%$#"()76543210/.-,+*89:;<=>?@ABCDEFGHIJKLM8()*+,-./01234567 !"#$%&'Q9:P     ;<W=>?@ABCDEF_^]GHIfJKl~}|wxyz{stuvopqrklmnhijgbcdef^_`a[\]XYZ|UVWkV\b{anpS~h`moR}rtvxOUjzL[eqsuwNTiyMgZYXdcWWZZ]]``ccffiilloorruu~}|{zyx%UVWXYZ[\]^_`abcdefhijklmnopqrstuvwxyz{~        !"#$%&'()*+,-./01234567)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNone&'-;<=>?AFQTV4    !"#$%&'()*+,=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\mnopqrst|}~       +,)*'(%&#$!" --------------;;[\YZWXUVSTQROPMNKLIJGHEFCDAB?@=>]]]]]]]]]]]]]]]]stqropmnuuuuuzz~|}F    !"#$%&'()*+,=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\mnopqrst|}~)Nickolay Kudasov <nickolay@getshoptv.com> experimentalSafeH?Options that specify how to encode your type to Swagger schema.XFunction applied to field labels. Handy for removing common record prefixes for example.\Function applied to constructor tags which could be handy for lower-casing them for example."Function applied to datatype name.If  the constructors of a datatype, with all nullary constructors, will be encoded to a string enumeration schema with the constructor tags as possible values.QHide the field name when a record constructor has only one field, like a newtype.Default encoding .  {  = id ,  = id ,  = id ,  = True ,  = False } None,-7;<=FSTUVf Convert 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 -Convert a type into a plain parameter schema./encode $ toParamSchema (Proxy :: Proxy Integer)"{\"type\":\"integer\"}"8Default schema for binary data (any sequence of octets).0Default schema for binary data (base64 encoded).%Default schema for password string.  "password"; format is used to hint UIs the input needs to be obscured.Default plain schema for ,  types.;encode $ toParamSchemaBoundedIntegral (Proxy :: Proxy Int8)9"{\"maximum\":127,\"minimum\":-128,\"type\":\"integer\"}"A configurable generic  creator.:set -XDeriveGeneric(data Color = Red | Blue deriving GenericIencode $ genericToParamSchema defaultSchemaOptions (Proxy :: Proxy Color)3"{\"type\":\"string\",\"enum\":[\"Red\",\"Blue\"]}"*encode $ toParamSchema (Proxy :: Proxy ())("{\"type\":\"string\",\"enum\":[\"_\"]}"0toParamSchema (Proxy :: Proxy UTCTime) ^. formatJust "yyyy-mm-ddThh:MM:ssZ"2toParamSchema (Proxy :: Proxy ZonedTime) ^. formatJust "yyyy-mm-ddThh:MM:ss+hhMM"2toParamSchema (Proxy :: Proxy LocalTime) ^. formatJust "yyyy-mm-ddThh:MM:ss"Format "date" corresponds to  yyyy-mm-dd format.D )Nickolay Kudasov <nickolay@getshoptv.com> experimentalNoneiS None +,-7;<=FNSTUV'Convert 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 Convert 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).EConvert a type into a schema and declare all used schema definitions. /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\"}" (Get type's schema name according to its  instance.schemaName (Proxy :: Proxy Int)Nothing#schemaName (Proxy :: Proxy UTCTime)Just "UTCTime" Convert 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\"}" yConvert 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\"}" Convert 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).CInline 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.>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.GInline all schema references for which the definition can be found in 8.WARNING: @ will produce infinite schemas when inlining recursive schemas.0Convert 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. Inline all  non-recursive3 schemas for which the definition can be found in 8.8Default schema for binary data (any sequence of octets).0Default schema for binary data (base64 encoded).%Default schema for password string.  "password"; format is used to hint UIs the input needs to be obscured."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\"}"Make 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\"}]}"Default schema for ,  types.7encode $ toSchemaBoundedIntegral (Proxy :: Proxy Int16)="{\"maximum\":32767,\"minimum\":-32768,\"type\":\"integer\"}"!Default generic named schema for ,  types.Declare a named schema for a newtype wrapper.Declare  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.A  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.A configurable generic  creator.A configurable generic $ creator. This function applied to  is used as the default for " when the type is an instance of . A configurable generic  creator.Unlike y also works for mixed sum types. Use with care since some Swagger tools do not support well schemas for mixed sum types.!A configurable generic  creator.Unlike y also works for mixed sum types. Use with care since some Swagger tools do not support well schemas for mixed sum types." Derive a 4-based name for a datatype and assign it to a given .$ Lift a plain  into a model .% Lift a plain  into a model ./Single field constructor.F>NOTE: This schema does not account for the uniqueness of keys.J+toSchema (Proxy :: Proxy UTCTime) ^. formatJust "yyyy-mm-ddThh:MM:ssZ"LFormat "date" corresponds to yyyy-mm-ddThh:MM:ss(Z|+hh:MM) format.M-toSchema (Proxy :: Proxy LocalTime) ^. formatJust "yyyy-mm-ddThh:MM:ss"NFormat "date" corresponds to  yyyy-mm-dd format.UFor  instance, see  -http://hackage.haskell.org/package/uuid-aeson uuid-aeson package.tRecord fields.uOptional record fields.How to derive the name.,How to create a schema for the wrapped type.8      !"#$%&'()*+,-.     lkjihgfedcba`_^]\[ZYXWVUTSRQPONMLKJIHnmGFEDCBA@?>=<;:9876 !"#$%&'(3210/)*+ut54s,r-.qpo )Nickolay Kudasov <nickolay@getshoptv.com> experimentalNone%     !"$%&    "$%!  )Nickolay Kudasov <nickolay@getshoptv.com> experimentalNoneQV.q vpPrepend 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\":{}}"w!All operations of a Swagger spec.xx 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\"}}}}}}"y@Apply tags to all operations and update the global list of tags. y = z w zIApply tags to a part of Swagger spec and update the global list of tags.{Construct 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\"}}]"|RSet response for all operations. This will also update global schema definitions.6If the response already exists it will be overwritten. | = ~ w 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 }.}\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. } =  w  See also |.~XSet response for specified operations. This will also update global schema definitions.6If the response already exists it will be overwritten. See also .bSet 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 ~. vwxyz{|}~ wxyz|}~v{ (c) 2015 GetShopTVBSD3)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNone&'3;=>?AKQUV]IJValue validation.Validation configuration.Pattern checker for  validation.2Schema definitions in scope to resolve references.Validation result type.0Validation failed with a list of error messages.Validation passed.Validation error message. 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 . 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 .Validate JSON  against Swagger .MvalidateJSON mempty (toSchema (Proxy :: Proxy Int)) (toJSON (x :: Int)) == []NOTE: 2 does not perform string pattern validation. See .Validate JSON  agains Swagger ' for a given value and pattern checker.$For validation without patterns see .Default : defaultConfig =  {  = \_pattern _str -> True ,  = mempty } Issue an error message.Validation passed.QValidate schema's property given a lens into that property and property checker.Validate schema's property given a lens into that property and property checker. If property is missing in schema, consider it valid.*Validate same value with different schema.7Validate same value with a part of the original schema.OValidate value against a schema given schema reference and validation function.Validate JSON  with Swagger .Validate JSON  with Swagger .$,)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNoneK)Nickolay Kudasov <nickolay@getshoptv.com> experimentalNoneMUVWXZY[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./012345678    !"#$%&'()*+,=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\mnopqrst|}~     !"$%vwxyz{|}~()*+,-./01234567 !"#$%&'     bcdefg8klmnopqrhij~stuvwxyz{}|^_`a[\]XYZUVW !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcddefghiijkklmnnopqrsstuuvwxyz{||}~       !"#$%&'()*+,-./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 o p q q r s t u v w x y z { | } ~                              0#swagger2-2.2-8n9uAOnNtcN6Cy6nlOhAwpData.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.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$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[] $fGMonoidK1URLgetUrl 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$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 $fDataExample$fFromJSONApiKeyLocation$fToJSONApiKeyLocation$fFromJSONApiKeyParams$fToJSONApiKeyParams$fFromJSONOAuth2Flow$fToJSONOAuth2Flow$fFromJSONOAuth2Params$fToJSONOAuth2Params$fFromJSONSecuritySchemeType$fToJSONSecuritySchemeType$fFromJSONSecurityScheme$fToJSONSecurityScheme$fFromJSONReference$fToJSONReference$fSwaggerMonoidReferenced$fIsStringReferenced$fFromJSONExternalDocs$fToJSONExternalDocs$fSwaggerMonoidExternalDocs$fMonoidExternalDocs $fFromJSONTag $fToJSONTag $fIsStringTag$fFromJSONParamSchema$fFromJSONParamSchema0$fFromJSONParamSchema1$fFromJSONReferenced$fFromJSONSwaggerItems$fFromJSONSwaggerItems0$fFromJSONSwaggerItems1$fFromJSONSchema$fToJSONParamSchema$fToJSONReferenced$fToJSONSwaggerItems$fToJSONSchema$fSwaggerMonoidParamSchema$fSwaggerMonoidSchema$fMonoidParamSchema$fMonoidSchema$fDataSwaggerItems$fDataSwaggerItems0$fDataSwaggerItems1$fFromJSONHeader$fToJSONHeader$fMonoidHeader$fFromJSONReferenced0$fFromJSONResponse$fToJSONReferenced0$fToJSONResponse$fSwaggerMonoidResponse$fMonoidResponse$fIsStringResponse$fFromJSONResponses$fToJSONResponses$fSwaggerMonoidResponses$fMonoidResponses$fFromJSONParamOtherSchema$fToJSONParamOtherSchema$fSwaggerMonoidParamOtherSchema$fMonoidParamOtherSchema$fFromJSONParamAnySchema$fToJSONParamAnySchema$fSwaggerMonoidParamAnySchema$fFromJSONReferenced1$fFromJSONParam$fToJSONReferenced1 $fToJSONParam$fSwaggerMonoidParam $fMonoidParam$fFromJSONOperation$fToJSONOperation$fSwaggerMonoidOperation$fMonoidOperation$fFromJSONPathItem$fToJSONPathItem$fSwaggerMonoidPathItem$fMonoidPathItem$fFromJSONLicense$fToJSONLicense$fIsStringLicense$fFromJSONContact$fToJSONContact$fMonoidContact$fFromJSONInfo $fToJSONInfo$fSwaggerMonoidInfo $fMonoidInfo$fFromJSONSwagger$fToJSONSwagger$fMonoidSwagger$fEqHost $fShowHost $fGenericHost $fEqScheme $fShowScheme$fGenericScheme $fDataScheme $fEqMimeList$fShowMimeList$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$fMonoidSecurityRequirement$fToJSONSecurityRequirement$fFromJSONSecurityRequirement$fDataSecurityRequirement $fEqReference$fShowReference$fDataReference$fEqReferenced$fShowReferenced$fFunctorReferenced$fDataReferenced$fEqURL$fOrdURL $fShowURL $fToJSONURL $fFromJSONURL $fDataURL$fEqExternalDocs$fOrdExternalDocs$fShowExternalDocs$fGenericExternalDocs$fDataExternalDocs$fEqTag$fOrdTag $fShowTag $fGenericTag $fDataTag $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 $fEqLicense $fShowLicense$fGenericLicense $fDataLicense $fEqContact $fShowContact$fGenericContact $fDataContact$fEqInfo $fShowInfo $fGenericInfo $fDataInfo $fEqSwagger $fShowSwagger$fGenericSwagger $fDataSwagger$fSwaggerMonoidURL$fDataParamSchema$fDataCollectionFormat0$fShowCollectionFormat$fEqCollectionFormat$fShowSwaggerType$fEqSwaggerType$fShowSwaggerItems$fEqSwaggerItemsD:R:DatatypeInfoOfHeader$fHasDatatypeInfoHeader$fGenericHeader0D:R:DatatypeInfoOfOAuth2Params$fHasDatatypeInfoOAuth2Params$fGenericOAuth2Params0D:R:DatatypeInfoOfOperation$fHasDatatypeInfoOperation$fGenericOperation0D:R:DatatypeInfoOfParam$fHasDatatypeInfoParam$fGenericParam0"D:R:DatatypeInfoOfParamOtherSchema!$fHasDatatypeInfoParamOtherSchema$fGenericParamOtherSchema0D:R:DatatypeInfoOfPathItem$fHasDatatypeInfoPathItem$fGenericPathItem0D:R:DatatypeInfoOfResponse$fHasDatatypeInfoResponse$fGenericResponse0D:R:DatatypeInfoOfResponses$fHasDatatypeInfoResponses$fGenericResponses0 D:R:DatatypeInfoOfSecurityScheme$fHasDatatypeInfoSecurityScheme$fGenericSecurityScheme0D:R:DatatypeInfoOfSchema$fHasDatatypeInfoSchema$fGenericSchema0D:R:DatatypeInfoOfParamSchema$fHasDatatypeInfoParamSchema$fGenericParamSchema0 $fAesonDefaultValueParamLocation$fAesonDefaultValueInfo$fAesonDefaultValueMimeList$fAesonDefaultValueSwaggerType%$fAesonDefaultValueSecuritySchemeType!$fAesonDefaultValueParamAnySchema$fAesonDefaultValueResponses$fAesonDefaultValueOAuth2Flow$fAesonDefaultValueParamSchema#$fHasSwaggerAesonOptionsParamSchema$$fHasSwaggerAesonOptionsParamSchema0$$fHasSwaggerAesonOptionsParamSchema1$fHasSwaggerAesonOptionsSwagger$fHasSwaggerAesonOptionsSchema&$fHasSwaggerAesonOptionsSecurityScheme!$fHasSwaggerAesonOptionsResponses $fHasSwaggerAesonOptionsResponse $fHasSwaggerAesonOptionsPathItem($fHasSwaggerAesonOptionsParamOtherSchema$fHasSwaggerAesonOptionsParam!$fHasSwaggerAesonOptionsOperation$$fHasSwaggerAesonOptionsOAuth2Params$fHasSwaggerAesonOptionsHeaderD:R:DatatypeInfoOfSwagger$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$fHasTagsSwaggerSetHasPortportHasNamename$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$fHasTagsOperationSet$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$fHasTypeParamSchemaSwaggerType $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$$fHasTypeParamOtherSchemaSwaggerType$fHasTypeNamedSchemaSwaggerType$fHasTypeSchemaSwaggerType$fHasTypeHeaderSwaggerType&$fHasParamSchemaNamedSchemaParamSchema $fAtOperation$fIxedOperation $fAtResponses$fIxedResponses SchemaOptionsfieldLabelModifierconstructorTagModifierdatatypeNameModifierallNullaryToStringTagunwrapUnaryRecordsdefaultSchemaOptionsProxy3GEnumParamSchemagenumParamSchemaGToParamSchemagtoParamSchemaToParamSchemaByteStringError ToParamSchema toParamSchemabinaryParamSchemabyteParamSchemapasswordParamSchematoParamSchemaBoundedIntegraltimeParamSchemagenericToParamSchema$fGToParamSchemaM1$fGToParamSchemaM10$fGToParamSchemaK1$fToParamSchemaUUID$fToParamSchema()$fToParamSchemaHashSet$fToParamSchemaSet$fToParamSchemaVector$fToParamSchemaVector0$fToParamSchemaVector1$fToParamSchemaVector2$fToParamSchema[]$fToParamSchemaIdentity$fToParamSchemaDual$fToParamSchemaLast$fToParamSchemaFirst$fToParamSchemaProduct$fToParamSchemaSum$fToParamSchemaAny$fToParamSchemaAll$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$fToSchemaHashSet $fToSchemaSet$fToSchemaVector$fToSchemaVector0$fToSchemaVector1$fToSchemaVector2$fToSchemaHashMap $fToSchemaMap$fToSchemaIntMap$fToSchemaIntSet$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 validateEnumvalidateSchemaTypevalidateParamSchemaType $fMonadResult$fAlternativeResult$fApplicativeResult$fMonadValidation$fChoiceValidation$fProfunctorValidation$fAlternativeValidation$fApplicativeValidation $fEqResult $fShowResult$fFunctorResult$fFunctorValidationbaseGHC.Basefmap _saoPrefix_saoAdditionalPairs _saoSubObjectghc-prim GHC.TypesTrue#text-1.2.2.2-EakMpasry3jA6OIwSZhq9MData.Text.InternalText GHC.GenericsGenericGHC.EnumBoundedGHC.RealIntegralcontainers-0.5.10.2Data.Map.InternalMap3unordered-containers-0.2.8.0-3iSQJVS3Sio885UUC852ojData.HashMap.BaseHashMap$aeson-1.2.3.0-IKViWrdpe5qGW36sSFwXh7Data.Aeson.Types.ToJSONToJSONEnum ToJSONKeyTextToJSONKeyValueData.Aeson.Types.InternalValue