swagger2-2.7: Swagger 2.0 data model
MaintainerNickolay Kudasov <nickolay@getshoptv.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Swagger.Lens

Description

Lenses and prisms for Swagger.

Synopsis

Classy lenses

class HasBasePath s a | s -> a where Source #

Methods

basePath :: Lens' s a Source #

Instances

Instances details
HasBasePath Swagger (Maybe FilePath) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasConsumes s a | s -> a where Source #

Methods

consumes :: Lens' s a Source #

Instances

Instances details
HasConsumes Swagger MimeList Source # 
Instance details

Defined in Data.Swagger.Lens

HasConsumes Operation (Maybe MimeList) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasDefinitions s a | s -> a where Source #

Methods

definitions :: Lens' s a Source #

Instances

Instances details
HasDefinitions Swagger (Definitions Schema) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasHost s a | s -> a where Source #

Methods

host :: Lens' s a Source #

Instances

Instances details
HasHost Swagger (Maybe Host) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasInfo s a | s -> a where Source #

Methods

info :: Lens' s a Source #

Instances

Instances details
HasInfo Swagger Info Source # 
Instance details

Defined in Data.Swagger.Lens

class HasPaths s a | s -> a where Source #

Methods

paths :: Lens' s a Source #

Instances

Instances details
HasPaths Swagger (InsOrdHashMap FilePath PathItem) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasProduces s a | s -> a where Source #

Methods

produces :: Lens' s a Source #

Instances

Instances details
HasProduces Swagger MimeList Source # 
Instance details

Defined in Data.Swagger.Lens

HasProduces Operation (Maybe MimeList) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasSchemes s a | s -> a where Source #

Methods

schemes :: Lens' s a Source #

Instances

Instances details
HasSchemes Operation (Maybe [Scheme]) Source # 
Instance details

Defined in Data.Swagger.Lens

HasSchemes Swagger (Maybe [Scheme]) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasSecurity s a | s -> a where Source #

Methods

security :: Lens' s a Source #

class HasTags s a | s -> a where Source #

Methods

tags :: Lens' s a Source #

Instances

Instances details
HasTags Operation (InsOrdHashSet TagName) Source # 
Instance details

Defined in Data.Swagger.Lens

HasTags Swagger (InsOrdHashSet Tag) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasName s a | s -> a where Source #

Methods

name :: Lens' s a Source #

Instances

Instances details
HasName Tag TagName Source # 
Instance details

Defined in Data.Swagger.Lens

HasName Param Text Source # 
Instance details

Defined in Data.Swagger.Lens

HasName Host HostName Source # 
Instance details

Defined in Data.Swagger.Lens

HasName License Text Source # 
Instance details

Defined in Data.Swagger.Lens

HasName Xml (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

HasName NamedSchema (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

HasName Contact (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasPort s a | s -> a where Source #

Methods

port :: Lens' s a Source #

Instances

Instances details
HasPort Host (Maybe PortNumber) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasContact s a | s -> a where Source #

Methods

contact :: Lens' s a Source #

Instances

Instances details
HasContact Info (Maybe Contact) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasLicense s a | s -> a where Source #

Methods

license :: Lens' s a Source #

Instances

Instances details
HasLicense Info (Maybe License) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasTermsOfService s a | s -> a where Source #

Instances

Instances details
HasTermsOfService Info (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasTitle s a | s -> a where Source #

Methods

title :: Lens' s a Source #

Instances

Instances details
HasTitle Info Text Source # 
Instance details

Defined in Data.Swagger.Lens

HasTitle Schema (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasVersion s a | s -> a where Source #

Methods

version :: Lens' s a Source #

Instances

Instances details
HasVersion Info Text Source # 
Instance details

Defined in Data.Swagger.Lens

class HasEmail s a | s -> a where Source #

Methods

email :: Lens' s a Source #

Instances

Instances details
HasEmail Contact (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasUrl s a | s -> a where Source #

Methods

url :: Lens' s a Source #

Instances

Instances details
HasUrl ExternalDocs URL Source # 
Instance details

Defined in Data.Swagger.Lens

HasUrl License (Maybe URL) Source # 
Instance details

Defined in Data.Swagger.Lens

HasUrl Contact (Maybe URL) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasDelete s a | s -> a where Source #

Methods

delete :: Lens' s a Source #

Instances

Instances details
HasDelete PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasGet s a | s -> a where Source #

Methods

get :: Lens' s a Source #

Instances

Instances details
HasGet PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasHead s a | s -> a where Source #

Methods

head_ :: Lens' s a Source #

Instances

Instances details
HasHead PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasOptions s a | s -> a where Source #

Methods

options :: Lens' s a Source #

Instances

Instances details
HasOptions PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasPatch s a | s -> a where Source #

Methods

patch :: Lens' s a Source #

Instances

Instances details
HasPatch PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasPost s a | s -> a where Source #

Methods

post :: Lens' s a Source #

Instances

Instances details
HasPost PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasPut s a | s -> a where Source #

Methods

put :: Lens' s a Source #

Instances

Instances details
HasPut PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasDeprecated s a | s -> a where Source #

Methods

deprecated :: Lens' s a Source #

Instances

Instances details
HasDeprecated Operation (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasOperationId s a | s -> a where Source #

Methods

operationId :: Lens' s a Source #

Instances

Instances details
HasOperationId Operation (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasSummary s a | s -> a where Source #

Methods

summary :: Lens' s a Source #

Instances

Instances details
HasSummary Operation (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasRequired s a | s -> a where Source #

Methods

required :: Lens' s a Source #

Instances

Instances details
HasRequired Schema [ParamName] Source # 
Instance details

Defined in Data.Swagger.Lens

HasRequired Param (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasSchema s a | s -> a where Source #

Methods

schema :: Lens' s a Source #

class HasAllowEmptyValue s a | s -> a where Source #

Instances

Instances details
HasAllowEmptyValue ParamOtherSchema (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasIn s a | s -> a where Source #

Methods

in_ :: Lens' s a Source #

Instances

Instances details
HasIn ParamOtherSchema ParamLocation Source # 
Instance details

Defined in Data.Swagger.Lens

class HasAllOf s a | s -> a where Source #

Methods

allOf :: Lens' s a Source #

Instances

Instances details
HasAllOf Schema (Maybe [Referenced Schema]) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasDiscriminator s a | s -> a where Source #

Methods

discriminator :: Lens' s a Source #

Instances

Instances details
HasDiscriminator Schema (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasExample s a | s -> a where Source #

Methods

example :: Lens' s a Source #

Instances

Instances details
HasExample Schema (Maybe Value) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMaxProperties s a | s -> a where Source #

Methods

maxProperties :: Lens' s a Source #

Instances

Instances details
HasMaxProperties Schema (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMinProperties s a | s -> a where Source #

Methods

minProperties :: Lens' s a Source #

Instances

Instances details
HasMinProperties Schema (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasProperties s a | s -> a where Source #

Methods

properties :: Lens' s a Source #

class HasReadOnly s a | s -> a where Source #

Methods

readOnly :: Lens' s a Source #

Instances

Instances details
HasReadOnly Schema (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasXml s a | s -> a where Source #

Methods

xml :: Lens' s a Source #

Instances

Instances details
HasXml Schema (Maybe Xml) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasDefault s a | s -> a where Source #

Methods

default_ :: Lens' s a Source #

class HasEnum s a | s -> a where Source #

Methods

enum_ :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasEnum s (Maybe [Value]) Source # 
Instance details

Defined in Data.Swagger.Lens

Methods

enum_ :: Lens' s (Maybe [Value]) Source #

HasEnum (ParamSchema t) (Maybe [Value]) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasExclusiveMaximum s a | s -> a where Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasExclusiveMaximum s (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

HasExclusiveMaximum (ParamSchema t) (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasExclusiveMinimum s a | s -> a where Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasExclusiveMinimum s (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

HasExclusiveMinimum (ParamSchema t) (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasFormat s a | s -> a where Source #

Methods

format :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasFormat s (Maybe Format) Source # 
Instance details

Defined in Data.Swagger.Lens

HasFormat (ParamSchema t) (Maybe Format) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasItems s a | s -> a where Source #

Methods

items :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasItems s (Maybe (SwaggerItems t)) Source # 
Instance details

Defined in Data.Swagger.Lens

Methods

items :: Lens' s (Maybe (SwaggerItems t)) Source #

HasItems (ParamSchema t) (Maybe (SwaggerItems t)) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMaxItems s a | s -> a where Source #

Methods

maxItems :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasMaxItems s (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

HasMaxItems (ParamSchema t) (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMaxLength s a | s -> a where Source #

Methods

maxLength :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasMaxLength s (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

HasMaxLength (ParamSchema t) (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMaximum s a | s -> a where Source #

Methods

maximum_ :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasMaximum s (Maybe Scientific) Source # 
Instance details

Defined in Data.Swagger.Lens

HasMaximum (ParamSchema t) (Maybe Scientific) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMinItems s a | s -> a where Source #

Methods

minItems :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasMinItems s (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

HasMinItems (ParamSchema t) (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMinLength s a | s -> a where Source #

Methods

minLength :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasMinLength s (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

HasMinLength (ParamSchema t) (Maybe Integer) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMinimum s a | s -> a where Source #

Methods

minimum_ :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasMinimum s (Maybe Scientific) Source # 
Instance details

Defined in Data.Swagger.Lens

HasMinimum (ParamSchema t) (Maybe Scientific) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasMultipleOf s a | s -> a where Source #

Methods

multipleOf :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasMultipleOf s (Maybe Scientific) Source # 
Instance details

Defined in Data.Swagger.Lens

HasMultipleOf (ParamSchema t) (Maybe Scientific) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasPattern s a | s -> a where Source #

Methods

pattern :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasPattern s (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

Methods

pattern :: Lens' s (Maybe Text) Source #

HasPattern (ParamSchema t) (Maybe Pattern) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasUniqueItems s a | s -> a where Source #

Methods

uniqueItems :: Lens' s a Source #

Instances

Instances details
HasParamSchema s (ParamSchema t) => HasUniqueItems s (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

HasUniqueItems (ParamSchema t) (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasAttribute s a | s -> a where Source #

Methods

attribute :: Lens' s a Source #

Instances

Instances details
HasAttribute Xml (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasNamespace s a | s -> a where Source #

Methods

namespace :: Lens' s a Source #

Instances

Instances details
HasNamespace Xml (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasPrefix s a | s -> a where Source #

Methods

prefix :: Lens' s a Source #

Instances

Instances details
HasPrefix Xml (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasWrapped s a | s -> a where Source #

Methods

wrapped :: Lens' s a Source #

Instances

Instances details
HasWrapped Xml (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasExamples s a | s -> a where Source #

Methods

examples :: Lens' s a Source #

Instances

Instances details
HasExamples Response (Maybe Example) Source # 
Instance details

Defined in Data.Swagger.Lens

class HasHeaders s a | s -> a where Source #

Methods

headers :: Lens' s a Source #

Prisms

ParamAnySchema prisms

SecuritySchemeType prisms

Referenced prisms

_Inline :: forall a a. Prism (Referenced a) (Referenced a) a a Source #

SwaggerItems prisms

Orphan instances