swagger2-2.3.0.1: Swagger 2.0 data model

MaintainerNickolay Kudasov <nickolay@getshoptv.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Swagger.Lens

Contents

Description

Lenses and prisms for Swagger.

Synopsis

Classy lenses

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

Minimal complete definition

basePath

Methods

basePath :: Lens' s a Source #

Instances
HasBasePath Swagger (Maybe FilePath) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

consumes

Methods

consumes :: Lens' s a Source #

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

Minimal complete definition

definitions

Methods

definitions :: Lens' s a Source #

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

Minimal complete definition

host

Methods

host :: Lens' s a Source #

Instances
HasHost Swagger (Maybe Host) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

info

Methods

info :: Lens' s a Source #

Instances
HasInfo Swagger Info Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

parameters

Methods

parameters :: Lens' s a Source #

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

Minimal complete definition

paths

Methods

paths :: Lens' s a Source #

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

Minimal complete definition

produces

Methods

produces :: Lens' s a Source #

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

Minimal complete definition

schemes

Methods

schemes :: Lens' s a Source #

Instances
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 #

Minimal complete definition

security

Methods

security :: Lens' s a Source #

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

Minimal complete definition

tags

Methods

tags :: Lens' s a Source #

Instances
HasTags Operation (Set TagName) Source # 
Instance details

Defined in Data.Swagger.Lens

HasTags Swagger (Set Tag) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

name

Methods

name :: Lens' s a Source #

Instances
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 #

Minimal complete definition

port

Methods

port :: Lens' s a Source #

Instances
HasPort Host (Maybe PortNumber) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

contact

Methods

contact :: Lens' s a Source #

Instances
HasContact Info (Maybe Contact) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

license

Methods

license :: Lens' s a Source #

Instances
HasLicense Info (Maybe License) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

termsOfService

Instances
HasTermsOfService Info (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

title

Methods

title :: Lens' s a Source #

Instances
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 #

Minimal complete definition

version

Methods

version :: Lens' s a Source #

Instances
HasVersion Info Text Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

email

Methods

email :: Lens' s a Source #

Instances
HasEmail Contact (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

url

Methods

url :: Lens' s a Source #

Instances
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 #

Minimal complete definition

delete

Methods

delete :: Lens' s a Source #

Instances
HasDelete PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

get

Methods

get :: Lens' s a Source #

Instances
HasGet PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

head_

Methods

head_ :: Lens' s a Source #

Instances
HasHead PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

options

Methods

options :: Lens' s a Source #

Instances
HasOptions PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

patch

Methods

patch :: Lens' s a Source #

Instances
HasPatch PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

post

Methods

post :: Lens' s a Source #

Instances
HasPost PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

put

Methods

put :: Lens' s a Source #

Instances
HasPut PathItem (Maybe Operation) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

deprecated

Methods

deprecated :: Lens' s a Source #

Instances
HasDeprecated Operation (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

operationId

Methods

operationId :: Lens' s a Source #

Instances
HasOperationId Operation (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

summary

Methods

summary :: Lens' s a Source #

Instances
HasSummary Operation (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

required

Methods

required :: Lens' s a Source #

Instances
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 #

Minimal complete definition

schema

Methods

schema :: Lens' s a Source #

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

Minimal complete definition

allowEmptyValue

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

Minimal complete definition

in_

Methods

in_ :: Lens' s a Source #

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

Minimal complete definition

allOf

Methods

allOf :: Lens' s a Source #

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

Defined in Data.Swagger.Lens

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

Minimal complete definition

discriminator

Methods

discriminator :: Lens' s a Source #

Instances
HasDiscriminator Schema (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

example

Methods

example :: Lens' s a Source #

Instances
HasExample Schema (Maybe Value) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

maxProperties

Methods

maxProperties :: Lens' s a Source #

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

Minimal complete definition

minProperties

Methods

minProperties :: Lens' s a Source #

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

Minimal complete definition

properties

Methods

properties :: Lens' s a Source #

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

Minimal complete definition

readOnly

Methods

readOnly :: Lens' s a Source #

Instances
HasReadOnly Schema (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

xml

Methods

xml :: Lens' s a Source #

Instances
HasXml Schema (Maybe Xml) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

default_

Methods

default_ :: Lens' s a Source #

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

Minimal complete definition

enum_

Methods

enum_ :: Lens' s a Source #

Instances
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 #

Minimal complete definition

exclusiveMaximum

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

Minimal complete definition

exclusiveMinimum

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

Minimal complete definition

format

Methods

format :: Lens' s a Source #

Instances
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 #

Minimal complete definition

items

Methods

items :: Lens' s a Source #

Instances
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 #

Minimal complete definition

maxItems

Methods

maxItems :: Lens' s a Source #

Instances
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 #

Minimal complete definition

maxLength

Methods

maxLength :: Lens' s a Source #

Instances
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 #

Minimal complete definition

maximum_

Methods

maximum_ :: Lens' s a Source #

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

Minimal complete definition

minItems

Methods

minItems :: Lens' s a Source #

Instances
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 #

Minimal complete definition

minLength

Methods

minLength :: Lens' s a Source #

Instances
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 #

Minimal complete definition

minimum_

Methods

minimum_ :: Lens' s a Source #

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

Minimal complete definition

multipleOf

Methods

multipleOf :: Lens' s a Source #

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

Minimal complete definition

pattern

Methods

pattern :: Lens' s a Source #

Instances
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 #

Minimal complete definition

uniqueItems

Methods

uniqueItems :: Lens' s a Source #

Instances
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 #

Minimal complete definition

attribute

Methods

attribute :: Lens' s a Source #

Instances
HasAttribute Xml (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

namespace

Methods

namespace :: Lens' s a Source #

Instances
HasNamespace Xml (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

prefix

Methods

prefix :: Lens' s a Source #

Instances
HasPrefix Xml (Maybe Text) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

wrapped

Methods

wrapped :: Lens' s a Source #

Instances
HasWrapped Xml (Maybe Bool) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

examples

Methods

examples :: Lens' s a Source #

Instances
HasExamples Response (Maybe Example) Source # 
Instance details

Defined in Data.Swagger.Lens

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

Minimal complete definition

headers

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