Maintainer | Nickolay Kudasov <[email protected]> |
---|---|
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Data.Swagger.Lens
Contents
Description
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
- definitions :: Lens' s a
- class HasExternalDocs s a | s -> a where
- externalDocs :: Lens' s a
- class HasHost s a | s -> a where
- class HasInfo s a | s -> a where
- class HasParameters s a | s -> a where
- parameters :: Lens' s a
- 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
- securityDefinitions :: Lens' s a
- 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
- description :: Lens' s a
- class HasLicense s a | s -> a where
- class HasTermsOfService s a | s -> a where
- termsOfService :: Lens' s a
- 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
- deprecated :: Lens' s a
- class HasOperationId s a | s -> a where
- operationId :: Lens' s a
- 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
- allowEmptyValue :: Lens' s a
- class HasIn s a | s -> a where
- class HasParamSchema s a | s -> a where
- paramSchema :: Lens' s a
- class HasAdditionalProperties s a | s -> a where
- additionalProperties :: Lens' s a
- class HasAllOf s a | s -> a where
- class HasDiscriminator s a | s -> a where
- discriminator :: Lens' s a
- class HasExample s a | s -> a where
- class HasMaxProperties s a | s -> a where
- maxProperties :: Lens' s a
- class HasMinProperties s a | s -> a where
- minProperties :: Lens' s a
- class HasProperties s a | s -> a where
- properties :: Lens' s a
- 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
- exclusiveMaximum :: Lens' s a
- class HasExclusiveMinimum s a | s -> a where
- exclusiveMinimum :: Lens' s a
- 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
- multipleOf :: Lens' s a
- class HasPattern s a | s -> a where
- class HasType s a | s -> a where
- class HasUniqueItems s a | s -> a where
- uniqueItems :: Lens' s a
- 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 :: forall t. (t ~ Schema) => Review (SwaggerItems t) [Referenced Schema]
- _SwaggerItemsObject :: forall t. (t ~ Schema) => Review (SwaggerItems t) (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
Instances
class HasConsumes s a | s -> a where Source
Instances
class HasExternalDocs s a | s -> a where Source
Methods
externalDocs :: Lens' s a Source
class HasParameters s a | s -> a where Source
Methods
parameters :: Lens' s a Source
class HasProduces s a | s -> a where Source
Instances
class HasResponses s a | s -> a where Source
class HasSchemes s a | s -> a where Source
Instances
class HasSecurity s a | s -> a where Source
class HasSecurityDefinitions s a | s -> a where Source
Methods
securityDefinitions :: Lens' s a Source
Instances
class HasContact s a | s -> a where Source
Instances
class HasDescription s a | s -> a where Source
Methods
description :: Lens' s a Source
Instances
class HasLicense s a | s -> a where Source
Instances
class HasVersion s a | s -> a where Source
Instances
class HasOptions s a | s -> a where Source
Instances
class HasSummary s a | s -> a where Source
Instances
class HasRequired s a | s -> a where Source
Instances
class HasAllowEmptyValue s a | s -> a where Source
Methods
allowEmptyValue :: Lens' s a Source
Instances
class HasParamSchema s a | s -> a where Source
Methods
paramSchema :: Lens' s a Source
class HasAdditionalProperties s a | s -> a where Source
Methods
additionalProperties :: Lens' s a Source
Instances
class HasExample s a | s -> a where Source
Instances
class HasReadOnly s a | s -> a where Source
Instances
class HasDefault s a | s -> a where Source
Instances
class HasEnum s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasEnum s (Maybe [Value]) Source | |
HasEnum (ParamSchema t) (Maybe [Value]) Source |
class HasExclusiveMaximum s a | s -> a where Source
Methods
exclusiveMaximum :: Lens' s a Source
Instances
HasParamSchema s (ParamSchema t) => HasExclusiveMaximum s (Maybe Bool) Source | |
HasExclusiveMaximum (ParamSchema t) (Maybe Bool) Source |
class HasExclusiveMinimum s a | s -> a where Source
Methods
exclusiveMinimum :: Lens' s a Source
Instances
HasParamSchema s (ParamSchema t) => HasExclusiveMinimum s (Maybe Bool) Source | |
HasExclusiveMinimum (ParamSchema t) (Maybe Bool) Source |
class HasFormat s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasFormat s (Maybe Format) Source | |
HasFormat (ParamSchema t) (Maybe Format) Source |
class HasItems s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasItems s (Maybe (SwaggerItems t)) Source | |
HasItems (ParamSchema t) (Maybe (SwaggerItems t)) Source |
class HasMaxItems s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasMaxItems s (Maybe Integer) Source | |
HasMaxItems (ParamSchema t) (Maybe Integer) Source |
class HasMaxLength s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasMaxLength s (Maybe Integer) Source | |
HasMaxLength (ParamSchema t) (Maybe Integer) Source |
class HasMaximum s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasMaximum s (Maybe Scientific) Source | |
HasMaximum (ParamSchema t) (Maybe Scientific) Source |
class HasMinItems s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasMinItems s (Maybe Integer) Source | |
HasMinItems (ParamSchema t) (Maybe Integer) Source |
class HasMinLength s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasMinLength s (Maybe Integer) Source | |
HasMinLength (ParamSchema t) (Maybe Integer) Source |
class HasMinimum s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasMinimum s (Maybe Scientific) Source | |
HasMinimum (ParamSchema t) (Maybe Scientific) Source |
class HasMultipleOf s a | s -> a where Source
Methods
multipleOf :: Lens' s a Source
Instances
HasParamSchema s (ParamSchema t) => HasMultipleOf s (Maybe Scientific) Source | |
HasMultipleOf (ParamSchema t) (Maybe Scientific) Source |
class HasPattern s a | s -> a where Source
Instances
HasParamSchema s (ParamSchema t) => HasPattern s (Maybe Text) Source | |
HasPattern (ParamSchema t) (Maybe Pattern) Source |
class HasUniqueItems s a | s -> a where Source
Methods
uniqueItems :: Lens' s a Source
Instances
HasParamSchema s (ParamSchema t) => HasUniqueItems s (Maybe Bool) Source | |
HasUniqueItems (ParamSchema t) (Maybe Bool) Source |
class HasAttribute s a | s -> a where Source
Instances
class HasNamespace s a | s -> a where Source
Instances
class HasWrapped s a | s -> a where Source
Instances
class HasExamples s a | s -> a where Source
Instances
class HasHeaders s a | s -> a where Source
Instances
Prisms
ParamAnySchema
prisms
SecuritySchemeType
prisms
Referenced
prisms
_Inline :: forall a a. Prism (Referenced a) (Referenced a) a a Source
_Ref :: forall a. Prism' (Referenced a) Reference Source
SwaggerItems
prisms
_SwaggerItemsArray :: forall t. (t ~ Schema) => Review (SwaggerItems t) [Referenced Schema] Source
_SwaggerItemsObject :: forall t. (t ~ Schema) => Review (SwaggerItems t) (Referenced Schema) Source
_SwaggerItemsPrimitive :: forall t p f. (Profunctor p, Bifunctor p, Functor f) => Optic' p f (SwaggerItems t) (Maybe (CollectionFormat t), ParamSchema t) Source