Maintainer | Nickolay Kudasov <nickolay@getshoptv.com> |
---|---|
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Lenses and prisms for Swagger.
- class HasBasePath s a | s -> a where
- class HasConsumes s a | s -> a where
- class HasDefinitions s a | s -> a where
- class HasExternalDocs s a | s -> a where
- class HasHost s a | s -> a where
- class HasInfo s a | s -> a where
- class HasParameters s a | s -> a where
- class HasPaths s a | s -> a where
- class HasProduces s a | s -> a where
- class HasResponses s a | s -> a where
- class HasSchemes s a | s -> a where
- class HasSecurity s a | s -> a where
- class HasSecurityDefinitions s a | s -> a where
- class HasTags s a | s -> a where
- class HasName s a | s -> a where
- class HasPort s a | s -> a where
- class HasContact s a | s -> a where
- class HasDescription s a | s -> a where
- class HasLicense s a | s -> a where
- class HasTermsOfService s a | s -> a where
- class HasTitle s a | s -> a where
- class HasVersion s a | s -> a where
- class HasEmail s a | s -> a where
- class HasUrl s a | s -> a where
- class HasDelete s a | s -> a where
- class HasGet s a | s -> a where
- class HasHead s a | s -> a where
- class HasOptions s a | s -> a where
- class HasPatch s a | s -> a where
- class HasPost s a | s -> a where
- class HasPut s a | s -> a where
- class HasDeprecated s a | s -> a where
- class HasOperationId s a | s -> a where
- class HasSummary s a | s -> a where
- class HasRequired s a | s -> a where
- class HasSchema s a | s -> a where
- class HasAllowEmptyValue s a | s -> a where
- class HasIn s a | s -> a where
- class HasParamSchema s a | s -> a where
- class HasAdditionalProperties s a | s -> a where
- class HasAllOf s a | s -> a where
- class HasDiscriminator s a | s -> a where
- class HasExample s a | s -> a where
- class HasMaxProperties s a | s -> a where
- class HasMinProperties s a | s -> a where
- class HasProperties s a | s -> a where
- class HasReadOnly s a | s -> a where
- class HasXml s a | s -> a where
- class HasDefault s a | s -> a where
- class HasEnum s a | s -> a where
- class HasExclusiveMaximum s a | s -> a where
- class HasExclusiveMinimum s a | s -> a where
- class HasFormat s a | s -> a where
- class HasItems s a | s -> a where
- class HasMaxItems s a | s -> a where
- class HasMaxLength s a | s -> a where
- class HasMaximum s a | s -> a where
- class HasMinItems s a | s -> a where
- class HasMinLength s a | s -> a where
- class HasMinimum s a | s -> a where
- class HasMultipleOf s a | s -> a where
- class HasPattern s a | s -> a where
- class HasType s a | s -> a where
- class HasUniqueItems s a | s -> a where
- class HasAttribute s a | s -> a where
- class HasNamespace s a | s -> a where
- class HasPrefix s a | s -> a where
- class HasWrapped s a | s -> a where
- class HasExamples s a | s -> a where
- class HasHeaders s a | s -> a where
- _ParamOther :: Prism' ParamAnySchema ParamOtherSchema
- _ParamBody :: Prism' ParamAnySchema (Referenced Schema)
- _SecuritySchemeOAuth2 :: Prism' SecuritySchemeType OAuth2Params
- _SecuritySchemeApiKey :: Prism' SecuritySchemeType ApiKeyParams
- _SecuritySchemeBasic :: Prism' SecuritySchemeType ()
- _Inline :: forall a a. Prism (Referenced a) (Referenced a) a a
- _Ref :: forall a. Prism' (Referenced a) Reference
- _SwaggerItemsArray :: Review (SwaggerItems SwaggerKindSchema) [Referenced Schema]
- _SwaggerItemsObject :: Review (SwaggerItems SwaggerKindSchema) (Referenced Schema)
- _SwaggerItemsPrimitive :: forall t p f. (Profunctor p, Bifunctor p, Functor f) => Optic' p f (SwaggerItems t) (Maybe (CollectionFormat t), ParamSchema t)
Classy lenses
class HasBasePath s a | s -> a where Source #
class HasConsumes s a | s -> a where Source #
class HasDefinitions s a | s -> a where Source #
definitions :: Lens' s a Source #
class HasExternalDocs s a | s -> a where Source #
externalDocs :: Lens' s a Source #
class HasParameters s a | s -> a where Source #
parameters :: Lens' s a Source #
class HasProduces s a | s -> a where Source #
class HasResponses s a | s -> a where Source #
class HasSchemes s a | s -> a where Source #
class HasSecurity s a | s -> a where Source #
class HasSecurityDefinitions s a | s -> a where Source #
securityDefinitions :: Lens' s a Source #
class HasContact s a | s -> a where Source #
class HasDescription s a | s -> a where Source #
description :: Lens' s a Source #
class HasLicense s a | s -> a where Source #
class HasTermsOfService s a | s -> a where Source #
termsOfService :: Lens' s a Source #
class HasVersion s a | s -> a where Source #
class HasOptions s a | s -> a where Source #
class HasDeprecated s a | s -> a where Source #
deprecated :: Lens' s a Source #
class HasOperationId s a | s -> a where Source #
operationId :: Lens' s a Source #
class HasSummary s a | s -> a where Source #
class HasRequired s a | s -> a where Source #
class HasAllowEmptyValue s a | s -> a where Source #
allowEmptyValue :: Lens' s a Source #
class HasParamSchema s a | s -> a where Source #
paramSchema :: Lens' s a Source #
class HasAdditionalProperties s a | s -> a where Source #
additionalProperties :: Lens' s a Source #
class HasDiscriminator s a | s -> a where Source #
discriminator :: Lens' s a Source #
class HasExample s a | s -> a where Source #
class HasMaxProperties s a | s -> a where Source #
maxProperties :: Lens' s a Source #
class HasMinProperties s a | s -> a where Source #
minProperties :: Lens' s a Source #
class HasProperties s a | s -> a where Source #
properties :: Lens' s a Source #
class HasReadOnly s a | s -> a where Source #
class HasDefault s a | s -> a where Source #
class HasEnum s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasEnum s (Maybe [Value]) Source # | |
HasEnum (ParamSchema t0) (Maybe [Value]) Source # | |
class HasExclusiveMaximum s a | s -> a where Source #
exclusiveMaximum :: Lens' s a Source #
HasParamSchema s (ParamSchema t) => HasExclusiveMaximum s (Maybe Bool) Source # | |
HasExclusiveMaximum (ParamSchema t0) (Maybe Bool) Source # | |
class HasExclusiveMinimum s a | s -> a where Source #
exclusiveMinimum :: Lens' s a Source #
HasParamSchema s (ParamSchema t) => HasExclusiveMinimum s (Maybe Bool) Source # | |
HasExclusiveMinimum (ParamSchema t0) (Maybe Bool) Source # | |
class HasFormat s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasFormat s (Maybe Format) Source # | |
HasFormat (ParamSchema t0) (Maybe Format) Source # | |
class HasItems s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasItems s (Maybe (SwaggerItems t)) Source # | |
HasItems (ParamSchema t0) (Maybe (SwaggerItems t0)) Source # | |
class HasMaxItems s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasMaxItems s (Maybe Integer) Source # | |
HasMaxItems (ParamSchema t0) (Maybe Integer) Source # | |
class HasMaxLength s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasMaxLength s (Maybe Integer) Source # | |
HasMaxLength (ParamSchema t0) (Maybe Integer) Source # | |
class HasMaximum s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasMaximum s (Maybe Scientific) Source # | |
HasMaximum (ParamSchema t0) (Maybe Scientific) Source # | |
class HasMinItems s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasMinItems s (Maybe Integer) Source # | |
HasMinItems (ParamSchema t0) (Maybe Integer) Source # | |
class HasMinLength s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasMinLength s (Maybe Integer) Source # | |
HasMinLength (ParamSchema t0) (Maybe Integer) Source # | |
class HasMinimum s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasMinimum s (Maybe Scientific) Source # | |
HasMinimum (ParamSchema t0) (Maybe Scientific) Source # | |
class HasMultipleOf s a | s -> a where Source #
multipleOf :: Lens' s a Source #
HasParamSchema s (ParamSchema t) => HasMultipleOf s (Maybe Scientific) Source # | |
HasMultipleOf (ParamSchema t0) (Maybe Scientific) Source # | |
class HasPattern s a | s -> a where Source #
HasParamSchema s (ParamSchema t) => HasPattern s (Maybe Text) Source # | |
HasPattern (ParamSchema t0) (Maybe Pattern) Source # | |
class HasType s a | s -> a where Source #
class HasUniqueItems s a | s -> a where Source #
uniqueItems :: Lens' s a Source #
HasParamSchema s (ParamSchema t) => HasUniqueItems s (Maybe Bool) Source # | |
HasUniqueItems (ParamSchema t0) (Maybe Bool) Source # | |
class HasAttribute s a | s -> a where Source #
class HasNamespace s a | s -> a where Source #
class HasWrapped s a | s -> a where Source #
class HasExamples s a | s -> a where Source #
class HasHeaders s a | s -> a where Source #
Prisms
ParamAnySchema
prisms
SecuritySchemeType
prisms
Referenced
prisms
_Inline :: forall a a. Prism (Referenced a) (Referenced a) a a Source #
SwaggerItems
prisms
_SwaggerItemsPrimitive :: forall t p f. (Profunctor p, Bifunctor p, Functor f) => Optic' p f (SwaggerItems t) (Maybe (CollectionFormat t), ParamSchema t) Source #