openapi3-code-generator-0.1.0.3: OpenAPI3 Haskell Client Code Generator

Safe HaskellNone
LanguageHaskell2010

OpenAPI.Generate.Types.Schema

Contents

Description

This module specifies the data types from the OpenAPI specification 3.0.3 Schema

For more information see http://spec.openapis.org/oas/v3.0.3 and https://json-schema.org/

All names in this module correspond to the respective OpenAPI types

Documentation

data SchemaObject Source #

Instances
Eq SchemaObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Ord SchemaObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Show SchemaObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Generic SchemaObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Associated Types

type Rep SchemaObject :: Type -> Type #

FromJSON SchemaObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep SchemaObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep SchemaObject = D1 (MetaData "SchemaObject" "OpenAPI.Generate.Types.Schema" "openapi3-code-generator-0.1.0.3-1OaHL9E6HNIKTuCXmNJefD" False) (C1 (MetaCons "SchemaObject" PrefixI True) (((((S1 (MetaSel (Just "type'") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SchemaType) :*: S1 (MetaSel (Just "title") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "multipleOf") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 (MetaSel (Just "maximum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Float)))) :*: ((S1 (MetaSel (Just "exclusiveMaximum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "minimum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Float))) :*: (S1 (MetaSel (Just "exclusiveMinimum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "maxLength") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Word))))) :*: (((S1 (MetaSel (Just "minLength") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Word)) :*: S1 (MetaSel (Just "pattern'") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "maxItems") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Word)) :*: S1 (MetaSel (Just "minItems") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Word)))) :*: ((S1 (MetaSel (Just "uniqueItems") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "maxProperties") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Word))) :*: (S1 (MetaSel (Just "minProperties") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Word)) :*: (S1 (MetaSel (Just "required") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Text)) :*: S1 (MetaSel (Just "enum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Value))))))) :*: ((((S1 (MetaSel (Just "allOf") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Schema)) :*: S1 (MetaSel (Just "oneOf") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Schema))) :*: (S1 (MetaSel (Just "anyOf") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Schema)) :*: S1 (MetaSel (Just "not") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Schema)))) :*: ((S1 (MetaSel (Just "properties") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map Text Schema)) :*: S1 (MetaSel (Just "additionalProperties") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AdditionalProperties)) :*: (S1 (MetaSel (Just "description") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "format") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "default'") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ConcreteValue)))))) :*: (((S1 (MetaSel (Just "nullable") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "discriminator") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe DiscriminatorObject))) :*: (S1 (MetaSel (Just "readOnly") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "writeOnly") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) :*: ((S1 (MetaSel (Just "xml") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe XMLObject)) :*: S1 (MetaSel (Just "externalDocs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ExternalDocumentationObject))) :*: (S1 (MetaSel (Just "example") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Value)) :*: (S1 (MetaSel (Just "deprecated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "items") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Schema)))))))))

data SchemaType Source #

Instances
Eq SchemaType Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Ord SchemaType Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Show SchemaType Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Generic SchemaType Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Associated Types

type Rep SchemaType :: Type -> Type #

FromJSON SchemaType Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep SchemaType Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep SchemaType = D1 (MetaData "SchemaType" "OpenAPI.Generate.Types.Schema" "openapi3-code-generator-0.1.0.3-1OaHL9E6HNIKTuCXmNJefD" False) ((C1 (MetaCons "SchemaTypeString" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "SchemaTypeNumber" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "SchemaTypeInteger" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "SchemaTypeBool" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "SchemaTypeObject" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "SchemaTypeArray" PrefixI False) (U1 :: Type -> Type))))

data DiscriminatorObject Source #

Instances
Eq DiscriminatorObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Ord DiscriminatorObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Show DiscriminatorObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Generic DiscriminatorObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Associated Types

type Rep DiscriminatorObject :: Type -> Type #

FromJSON DiscriminatorObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep DiscriminatorObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep DiscriminatorObject = D1 (MetaData "DiscriminatorObject" "OpenAPI.Generate.Types.Schema" "openapi3-code-generator-0.1.0.3-1OaHL9E6HNIKTuCXmNJefD" False) (C1 (MetaCons "DiscriminatorObject" PrefixI True) (S1 (MetaSel (Just "propertyName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "mapping") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map Text Text))))

data ConcreteValue Source #

Instances
Eq ConcreteValue Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Ord ConcreteValue Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Show ConcreteValue Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Generic ConcreteValue Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Associated Types

type Rep ConcreteValue :: Type -> Type #

FromJSON ConcreteValue Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep ConcreteValue Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep ConcreteValue = D1 (MetaData "ConcreteValue" "OpenAPI.Generate.Types.Schema" "openapi3-code-generator-0.1.0.3-1OaHL9E6HNIKTuCXmNJefD" False) ((C1 (MetaCons "StringDefaultValue" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "NumericDefaultValue" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Scientific))) :+: (C1 (MetaCons "BoolDefaultValue" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)) :+: C1 (MetaCons "OtherDefaultValue" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value))))

data AdditionalProperties Source #

Instances
Eq AdditionalProperties Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Ord AdditionalProperties Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Show AdditionalProperties Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Generic AdditionalProperties Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Associated Types

type Rep AdditionalProperties :: Type -> Type #

FromJSON AdditionalProperties Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep AdditionalProperties Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep AdditionalProperties = D1 (MetaData "AdditionalProperties" "OpenAPI.Generate.Types.Schema" "openapi3-code-generator-0.1.0.3-1OaHL9E6HNIKTuCXmNJefD" False) (C1 (MetaCons "NoAdditionalProperties" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "HasAdditionalProperties" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "AdditionalPropertiesWithSchema" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Schema))))

data XMLObject Source #

Constructors

XMLObject 
Instances
Eq XMLObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Ord XMLObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Show XMLObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Generic XMLObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Associated Types

type Rep XMLObject :: Type -> Type #

FromJSON XMLObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

type Rep XMLObject Source # 
Instance details

Defined in OpenAPI.Generate.Types.Schema

Orphan instances

Ord Value Source # 
Instance details

Methods

compare :: Value -> Value -> Ordering #

(<) :: Value -> Value -> Bool #

(<=) :: Value -> Value -> Bool #

(>) :: Value -> Value -> Bool #

(>=) :: Value -> Value -> Bool #

max :: Value -> Value -> Value #

min :: Value -> Value -> Value #