Module
OpenApi3.Schema
- Package
- purescript-openapi3
- Repository
- AlexMouton/purescript-openapi3
#Components Source
newtype Components
Constructors
Components { callbacks :: Maybe (Map String (Refable Callback)), examples :: Maybe (Map String (Refable Example)), headers :: Maybe (Map String (Refable Header)), links :: Maybe (Map String (Refable Link)), parameters :: Maybe (Map String (Refable Parameter)), requestBodies :: Maybe (Map String (Refable RequestBody)), responses :: Maybe (Map String (Refable Response)), schemas :: Maybe (Map String (Refable Schema)), securitySchemes :: Maybe (Map String (Refable SecurityScheme)) }
Instances
#Discriminator Source
#ExternalDocumentation Source
newtype ExternalDocumentation
Constructors
ExternalDocumentation { description :: Maybe String, url :: String }
Instances
#Header Source
newtype Header
Constructors
Header { allowEmptyValue :: Maybe Boolean, allowReserved :: Maybe Boolean, content :: Maybe (Map String MediaType), deprecated :: Maybe Boolean, description :: Maybe String, example :: Maybe Json, examples :: Maybe (Map String (Refable Example)), explode :: Maybe Boolean, required :: Maybe Boolean, schema :: Maybe (Refable Schema), style :: Maybe String }
Instances
#OAuthFlows Source
newtype OAuthFlows
Constructors
OAuthFlows { authorizationCode :: Maybe OAuthFlow, clientCredentials :: Maybe OAuthFlow, implicit :: Maybe OAuthFlow, password :: Maybe OAuthFlow }
Instances
#OpenApi Source
#Operation Source
newtype Operation
Constructors
Operation { callbacks :: Maybe (Map String (Refable Callback)), deprecated :: Maybe Boolean, description :: Maybe String, externalDocs :: Maybe ExternalDocumentation, operationId :: Maybe String, parameters :: Maybe (Array (Refable Parameter)), requestBody :: Maybe (Refable RequestBody), responses :: Responses, security :: Maybe (Array SecurityRequirement), servers :: Maybe (Array Server), summary :: Maybe String, tags :: Maybe (Array String) }
Instances
#Parameter Source
newtype Parameter
Constructors
Parameter { allowEmptyValue :: Maybe Boolean, allowReserved :: Maybe Boolean, content :: Maybe (Map String MediaType), deprecated :: Maybe Boolean, description :: Maybe String, example :: Maybe Json, examples :: Maybe (Map String (Refable Example)), explode :: Maybe Boolean, in :: String, name :: String, required :: Maybe Boolean, schema :: Maybe (Refable Schema), style :: Maybe String }
Instances
#PathItem Source
newtype PathItem
Constructors
PathItem { "$ref" :: Maybe String, delete :: Maybe Operation, description :: Maybe String, get :: Maybe Operation, head :: Maybe Operation, options :: Maybe Operation, parameters :: Maybe (Array (Refable Parameter)), patch :: Maybe Operation, post :: Maybe Operation, put :: Maybe Operation, servers :: Maybe (Array Server), summary :: Maybe String, trace :: Maybe Operation }
Instances
#RequestBody Source
newtype RequestBody
Constructors
RequestBody { content :: Map String MediaType, description :: Maybe String, required :: Maybe Boolean }
Instances
#Schema Source
newtype Schema
Constructors
Schema { allOf :: Maybe (Array (Refable Schema)), anyOf :: Maybe (Array (Refable Schema)), deprecated :: Maybe Boolean, discriminator :: Maybe Discriminator, example :: Maybe Json, exclusiveMaximum :: Maybe Number, exclusiveMinimum :: Maybe Number, externalDocs :: Maybe ExternalDocumentation, items :: Maybe (Refable Schema), maxItems :: Maybe Int, maxLength :: Maybe Int, maxProperties :: Maybe Int, maximum :: Maybe Number, minItems :: Maybe Int, minLength :: Maybe Int, minProperties :: Maybe Int, minimum :: Maybe Number, multipleOf :: Maybe String, not :: Maybe (Refable Schema), nullable :: Maybe Boolean, oneOf :: Maybe (Array (Refable Schema)), pattern :: Maybe String, properties :: Maybe (Refable Schema), readOnly :: Maybe Boolean, required :: Maybe (Array String), title :: Maybe String, type :: Maybe String, writeOnly :: Maybe Boolean, xml :: Maybe Xml }