swagger-petstore-0.1.0.0: Auto-generated swagger-petstore API Client

Safe Haskell | None
Language | Haskell2010

SwaggerPetstore.Model

Contents

- Models
  - AdditionalPropertiesClass
  - Animal
  - AnimalFarm
  - ApiResponse
  - ArrayOfArrayOfNumberOnly
  - ArrayOfNumberOnly
  - ArrayTest
  - Capitalization
  - Category
  - ClassModel
  - Client
  - EnumArrays
  - EnumClass
  - EnumTest
  - FormatTest
  - HasOnlyReadOnly
  - MapTest
  - MixedPropertiesAndAdditionalPropertiesClass
  - Model200Response
  - ModelList
  - ModelReturn
  - Name
  - NumberOnly
  - Order
  - OuterBoolean
  - OuterComposite
  - OuterEnum
  - OuterNumber
  - OuterString
  - Pet
  - ReadOnlyFirst
  - SpecialModelName
  - Tag
  - User
  - Cat
  - Dog

Description

Synopsis

- data AdditionalPropertiesClass = AdditionalPropertiesClass {
  - additionalPropertiesClassMapProperty :: !(Maybe (Map String Text))
  - additionalPropertiesClassMapOfMapProperty :: !(Maybe (Map String (Map String Text)))
  }
- mkAdditionalPropertiesClass :: AdditionalPropertiesClass
- data Animal = Animal {
  - animalClassName :: !Text
  - animalColor :: !(Maybe Text)
  }
- mkAnimal :: Text -> Animal
- data AnimalFarm = AnimalFarm {
  }
- mkAnimalFarm :: AnimalFarm
- data ApiResponse = ApiResponse {
  - apiResponseCode :: !(Maybe Int)
  - apiResponseType :: !(Maybe Text)
  - apiResponseMessage :: !(Maybe Text)
  }
- mkApiResponse :: ApiResponse
- data ArrayOfArrayOfNumberOnly = ArrayOfArrayOfNumberOnly {
  - arrayOfArrayOfNumberOnlyArrayArrayNumber :: !(Maybe [[Double]])
  }
- mkArrayOfArrayOfNumberOnly :: ArrayOfArrayOfNumberOnly
- data ArrayOfNumberOnly = ArrayOfNumberOnly {
  - arrayOfNumberOnlyArrayNumber :: !(Maybe [Double])
  }
- mkArrayOfNumberOnly :: ArrayOfNumberOnly
- data ArrayTest = ArrayTest {
  - arrayTestArrayOfString :: !(Maybe [Text])
  - arrayTestArrayArrayOfInteger :: !(Maybe [[Integer]])
  - arrayTestArrayArrayOfModel :: !(Maybe [[ReadOnlyFirst]])
  }
- mkArrayTest :: ArrayTest
- data Capitalization = Capitalization {
  - capitalizationSmallCamel :: !(Maybe Text)
  - capitalizationCapitalCamel :: !(Maybe Text)
  - capitalizationSmallSnake :: !(Maybe Text)
  - capitalizationCapitalSnake :: !(Maybe Text)
  - capitalizationScaEthFlowPoints :: !(Maybe Text)
  - capitalizationAttName :: !(Maybe Text)
  }
- mkCapitalization :: Capitalization
- data Category = Category {
  - categoryId :: !(Maybe Integer)
  - categoryName :: !(Maybe Text)
  }
- mkCategory :: Category
- data ClassModel = ClassModel {
  - classModelClass :: !(Maybe Text)
  }
- mkClassModel :: ClassModel
- data Client = Client {
  - clientClient :: !(Maybe Text)
  }
- mkClient :: Client
- data EnumArrays = EnumArrays {
  - enumArraysJustSymbol :: !(Maybe Text)
  - enumArraysArrayEnum :: !(Maybe [Text])
  }
- mkEnumArrays :: EnumArrays
- data EnumClass = EnumClass {
  }
- mkEnumClass :: EnumClass
- data EnumTest = EnumTest {
  - enumTestEnumString :: !(Maybe Text)
  - enumTestEnumInteger :: !(Maybe Int)
  - enumTestEnumNumber :: !(Maybe Double)
  - enumTestOuterEnum :: !(Maybe OuterEnum)
  }
- mkEnumTest :: EnumTest
- data FormatTest = FormatTest {
  - formatTestInteger :: !(Maybe Int)
  - formatTestInt32 :: !(Maybe Int)
  - formatTestInt64 :: !(Maybe Integer)
  - formatTestNumber :: !Double
  - formatTestFloat :: !(Maybe Float)
  - formatTestDouble :: !(Maybe Double)
  - formatTestString :: !(Maybe Text)
  - formatTestByte :: !ByteArray
  - formatTestBinary :: !(Maybe Binary)
  - formatTestDate :: !Date
  - formatTestDateTime :: !(Maybe DateTime)
  - formatTestUuid :: !(Maybe Text)
  - formatTestPassword :: !Text
  }
- mkFormatTest :: Double -> ByteArray -> Date -> Text -> FormatTest
- data HasOnlyReadOnly = HasOnlyReadOnly {
  - hasOnlyReadOnlyBar :: !(Maybe Text)
  - hasOnlyReadOnlyFoo :: !(Maybe Text)
  }
- mkHasOnlyReadOnly :: HasOnlyReadOnly
- data MapTest = MapTest {
  - mapTestMapMapOfString :: !(Maybe (Map String (Map String Text)))
  - mapTestMapOfEnumString :: !(Maybe (Map String Text))
  }
- mkMapTest :: MapTest
- data MixedPropertiesAndAdditionalPropertiesClass = MixedPropertiesAndAdditionalPropertiesClass {
  - mixedPropertiesAndAdditionalPropertiesClassUuid :: !(Maybe Text)
  - mixedPropertiesAndAdditionalPropertiesClassDateTime :: !(Maybe DateTime)
  - mixedPropertiesAndAdditionalPropertiesClassMap :: !(Maybe (Map String Animal))
  }
- mkMixedPropertiesAndAdditionalPropertiesClass :: MixedPropertiesAndAdditionalPropertiesClass
- data Model200Response = Model200Response {
  - model200ResponseName :: !(Maybe Int)
  - model200ResponseClass :: !(Maybe Text)
  }
- mkModel200Response :: Model200Response
- data ModelList = ModelList {
  - modelList123List :: !(Maybe Text)
  }
- mkModelList :: ModelList
- data ModelReturn = ModelReturn {
  - modelReturnReturn :: !(Maybe Int)
  }
- mkModelReturn :: ModelReturn
- data Name = Name {
  - nameName :: !Int
  - nameSnakeCase :: !(Maybe Int)
  - nameProperty :: !(Maybe Text)
  - name123Number :: !(Maybe Int)
  }
- mkName :: Int -> Name
- data NumberOnly = NumberOnly {
  - numberOnlyJustNumber :: !(Maybe Double)
  }
- mkNumberOnly :: NumberOnly
- data Order = Order {
  - orderId :: !(Maybe Integer)
  - orderPetId :: !(Maybe Integer)
  - orderQuantity :: !(Maybe Int)
  - orderShipDate :: !(Maybe DateTime)
  - orderStatus :: !(Maybe Text)
  - orderComplete :: !(Maybe Bool)
  }
- mkOrder :: Order
- newtype OuterBoolean = OuterBoolean {
  - unOuterBoolean :: Bool
  }
- data OuterComposite = OuterComposite {
  - outerCompositeMyNumber :: !(Maybe OuterNumber)
  - outerCompositeMyString :: !(Maybe OuterString)
  - outerCompositeMyBoolean :: !(Maybe OuterBoolean)
  }
- mkOuterComposite :: OuterComposite
- data OuterEnum = OuterEnum {
  }
- mkOuterEnum :: OuterEnum
- newtype OuterNumber = OuterNumber {
  - unOuterNumber :: Double
  }
- newtype OuterString = OuterString {
  - unOuterString :: Text
  }
- data Pet = Pet {
  - petId :: !(Maybe Integer)
  - petCategory :: !(Maybe Category)
  - petName :: !Text
  - petPhotoUrls :: ![Text]
  - petTags :: !(Maybe [Tag])
  - petStatus :: !(Maybe Text)
  }
- mkPet :: Text -> [Text] -> Pet
- data ReadOnlyFirst = ReadOnlyFirst {
  - readOnlyFirstBar :: !(Maybe Text)
  - readOnlyFirstBaz :: !(Maybe Text)
  }
- mkReadOnlyFirst :: ReadOnlyFirst
- data SpecialModelName = SpecialModelName {
  - specialModelNameSpecialPropertyName :: !(Maybe Integer)
  }
- mkSpecialModelName :: SpecialModelName
- data Tag = Tag {
  - tagId :: !(Maybe Integer)
  - tagName :: !(Maybe Text)
  }
- mkTag :: Tag
- data User = User {
  - userId :: !(Maybe Integer)
  - userUsername :: !(Maybe Text)
  - userFirstName :: !(Maybe Text)
  - userLastName :: !(Maybe Text)
  - userEmail :: !(Maybe Text)
  - userPassword :: !(Maybe Text)
  - userPhone :: !(Maybe Text)
  - userUserStatus :: !(Maybe Int)
  }
- mkUser :: User
- data Cat = Cat {
  - catClassName :: !Text
  - catColor :: !(Maybe Text)
  - catDeclawed :: !(Maybe Bool)
  }
- mkCat :: Text -> Cat
- data Dog = Dog {
  - dogClassName :: !Text
  - dogColor :: !(Maybe Text)
  - dogBreed :: !(Maybe Text)
  }
- mkDog :: Text -> Dog

# Models

## AdditionalPropertiesClass

data AdditionalPropertiesClass Source #

AdditionalPropertiesClass

Constructors

AdditionalPropertiesClass |
Fields additionalPropertiesClassMapProperty :: !(Maybe (Map String Text)) "map_property" additionalPropertiesClassMapOfMapProperty :: !(Maybe (Map String (Map String Text))) "map_of_map_property"

Instances

Eq AdditionalPropertiesClass Source # |
Methods (==) :: AdditionalPropertiesClass -> AdditionalPropertiesClass -> Bool # (/=) :: AdditionalPropertiesClass -> AdditionalPropertiesClass -> Bool #
Show AdditionalPropertiesClass Source # |
Methods showsPrec :: Int -> AdditionalPropertiesClass -> ShowS # show :: AdditionalPropertiesClass -> String # showList :: [AdditionalPropertiesClass] -> ShowS #
ToJSON AdditionalPropertiesClass Source # | ToJSON AdditionalPropertiesClass
Methods toJSON :: AdditionalPropertiesClass -> Value # toEncoding :: AdditionalPropertiesClass -> Encoding # toJSONList :: [AdditionalPropertiesClass] -> Value # toEncodingList :: [AdditionalPropertiesClass] -> Encoding #
FromJSON AdditionalPropertiesClass Source # | FromJSON AdditionalPropertiesClass
Methods parseJSON :: Value -> Parser AdditionalPropertiesClass # parseJSONList :: Value -> Parser [AdditionalPropertiesClass] #

mkAdditionalPropertiesClass :: AdditionalPropertiesClass Source #

Construct a value of type `AdditionalPropertiesClass` (by applying it's required fields, if any)

## Animal

data Animal Source #

Animal

Constructors

Animal |
Fields animalClassName :: !Text Required "className" animalColor :: !(Maybe Text) "color"

Instances

Eq Animal Source # |
Methods (==) :: Animal -> Animal -> Bool # (/=) :: Animal -> Animal -> Bool #
Show Animal Source # |
Methods showsPrec :: Int -> Animal -> ShowS # show :: Animal -> String # showList :: [Animal] -> ShowS #
ToJSON Animal Source # | ToJSON Animal
Methods toJSON :: Animal -> Value # toEncoding :: Animal -> Encoding # toJSONList :: [Animal] -> Value # toEncodingList :: [Animal] -> Encoding #
FromJSON Animal Source # | FromJSON Animal
Methods parseJSON :: Value -> Parser Animal # parseJSONList :: Value -> Parser [Animal] #

mkAnimal Source #

Arguments

:: Text | `animalClassName`
-> Animal |

Construct a value of type `Animal` (by applying it's required fields, if any)

## AnimalFarm

data AnimalFarm Source #

AnimalFarm

Constructors

AnimalFarm |

Instances

Eq AnimalFarm Source # |
Methods (==) :: AnimalFarm -> AnimalFarm -> Bool # (/=) :: AnimalFarm -> AnimalFarm -> Bool #
Show AnimalFarm Source # |
Methods showsPrec :: Int -> AnimalFarm -> ShowS # show :: AnimalFarm -> String # showList :: [AnimalFarm] -> ShowS #
ToJSON AnimalFarm Source # | ToJSON AnimalFarm
Methods toJSON :: AnimalFarm -> Value # toEncoding :: AnimalFarm -> Encoding # toJSONList :: [AnimalFarm] -> Value # toEncodingList :: [AnimalFarm] -> Encoding #
FromJSON AnimalFarm Source # | FromJSON AnimalFarm
Methods parseJSON :: Value -> Parser AnimalFarm # parseJSONList :: Value -> Parser [AnimalFarm] #

mkAnimalFarm :: AnimalFarm Source #

Construct a value of type `AnimalFarm` (by applying it's required fields, if any)

## ApiResponse

data ApiResponse Source #

ApiResponse

Constructors

ApiResponse |
Fields apiResponseCode :: !(Maybe Int) "code" apiResponseType :: !(Maybe Text) "type" apiResponseMessage :: !(Maybe Text) "message"

Instances

Eq ApiResponse Source # |
Methods (==) :: ApiResponse -> ApiResponse -> Bool # (/=) :: ApiResponse -> ApiResponse -> Bool #
Show ApiResponse Source # |
Methods showsPrec :: Int -> ApiResponse -> ShowS # show :: ApiResponse -> String # showList :: [ApiResponse] -> ShowS #
ToJSON ApiResponse Source # | ToJSON ApiResponse
Methods toJSON :: ApiResponse -> Value # toEncoding :: ApiResponse -> Encoding # toJSONList :: [ApiResponse] -> Value # toEncodingList :: [ApiResponse] -> Encoding #
FromJSON ApiResponse Source # | FromJSON ApiResponse
Methods parseJSON :: Value -> Parser ApiResponse # parseJSONList :: Value -> Parser [ApiResponse] #

mkApiResponse :: ApiResponse Source #

Construct a value of type `ApiResponse` (by applying it's required fields, if any)

## ArrayOfArrayOfNumberOnly

data ArrayOfArrayOfNumberOnly Source #

ArrayOfArrayOfNumberOnly

Constructors

ArrayOfArrayOfNumberOnly |
Fields arrayOfArrayOfNumberOnlyArrayArrayNumber :: !(Maybe [[Double]]) ArrayArrayNumber

Instances

Eq ArrayOfArrayOfNumberOnly Source # |
Methods (==) :: ArrayOfArrayOfNumberOnly -> ArrayOfArrayOfNumberOnly -> Bool # (/=) :: ArrayOfArrayOfNumberOnly -> ArrayOfArrayOfNumberOnly -> Bool #
Show ArrayOfArrayOfNumberOnly Source # |
Methods showsPrec :: Int -> ArrayOfArrayOfNumberOnly -> ShowS # show :: ArrayOfArrayOfNumberOnly -> String # showList :: [ArrayOfArrayOfNumberOnly] -> ShowS #
ToJSON ArrayOfArrayOfNumberOnly Source # | ToJSON ArrayOfArrayOfNumberOnly
Methods toJSON :: ArrayOfArrayOfNumberOnly -> Value # toEncoding :: ArrayOfArrayOfNumberOnly -> Encoding # toJSONList :: [ArrayOfArrayOfNumberOnly] -> Value # toEncodingList :: [ArrayOfArrayOfNumberOnly] -> Encoding #
FromJSON ArrayOfArrayOfNumberOnly Source # | FromJSON ArrayOfArrayOfNumberOnly
Methods parseJSON :: Value -> Parser ArrayOfArrayOfNumberOnly # parseJSONList :: Value -> Parser [ArrayOfArrayOfNumberOnly] #

mkArrayOfArrayOfNumberOnly :: ArrayOfArrayOfNumberOnly Source #

Construct a value of type `ArrayOfArrayOfNumberOnly` (by applying it's required fields, if any)

## ArrayOfNumberOnly

data ArrayOfNumberOnly Source #

ArrayOfNumberOnly

Constructors

ArrayOfNumberOnly |
Fields arrayOfNumberOnlyArrayNumber :: !(Maybe [Double]) ArrayNumber

Instances

Eq ArrayOfNumberOnly Source # |
Methods (==) :: ArrayOfNumberOnly -> ArrayOfNumberOnly -> Bool # (/=) :: ArrayOfNumberOnly -> ArrayOfNumberOnly -> Bool #
Show ArrayOfNumberOnly Source # |
Methods showsPrec :: Int -> ArrayOfNumberOnly -> ShowS # show :: ArrayOfNumberOnly -> String # showList :: [ArrayOfNumberOnly] -> ShowS #
ToJSON ArrayOfNumberOnly Source # | ToJSON ArrayOfNumberOnly
Methods toJSON :: ArrayOfNumberOnly -> Value # toEncoding :: ArrayOfNumberOnly -> Encoding # toJSONList :: [ArrayOfNumberOnly] -> Value # toEncodingList :: [ArrayOfNumberOnly] -> Encoding #
FromJSON ArrayOfNumberOnly Source # | FromJSON ArrayOfNumberOnly
Methods parseJSON :: Value -> Parser ArrayOfNumberOnly # parseJSONList :: Value -> Parser [ArrayOfNumberOnly] #

mkArrayOfNumberOnly :: ArrayOfNumberOnly Source #

Construct a value of type `ArrayOfNumberOnly` (by applying it's required fields, if any)

## ArrayTest

data ArrayTest Source #

ArrayTest

Constructors

ArrayTest |
Fields arrayTestArrayOfString :: !(Maybe [Text]) "array_of_string" arrayTestArrayArrayOfInteger :: !(Maybe [[Integer]]) "array_array_of_integer" arrayTestArrayArrayOfModel :: !(Maybe [[ReadOnlyFirst]]) "array_array_of_model"

Instances

Eq ArrayTest Source # |
Methods (==) :: ArrayTest -> ArrayTest -> Bool # (/=) :: ArrayTest -> ArrayTest -> Bool #
Show ArrayTest Source # |
Methods showsPrec :: Int -> ArrayTest -> ShowS # show :: ArrayTest -> String # showList :: [ArrayTest] -> ShowS #
ToJSON ArrayTest Source # | ToJSON ArrayTest
Methods toJSON :: ArrayTest -> Value # toEncoding :: ArrayTest -> Encoding # toJSONList :: [ArrayTest] -> Value # toEncodingList :: [ArrayTest] -> Encoding #
FromJSON ArrayTest Source # | FromJSON ArrayTest
Methods parseJSON :: Value -> Parser ArrayTest # parseJSONList :: Value -> Parser [ArrayTest] #

mkArrayTest :: ArrayTest Source #

Construct a value of type `ArrayTest` (by applying it's required fields, if any)

## Capitalization

data Capitalization Source #

Capitalization

Constructors

Capitalization |
Fields capitalizationSmallCamel :: !(Maybe Text) "smallCamel" capitalizationCapitalCamel :: !(Maybe Text) CapitalCamel capitalizationSmallSnake :: !(Maybe Text) "small_Snake" capitalizationCapitalSnake :: !(Maybe Text) Capital_Snake capitalizationScaEthFlowPoints :: !(Maybe Text) SCA_ETH_Flow_Points capitalizationAttName :: !(Maybe Text) ATT_NAME - Name of the pet

Instances

Eq Capitalization Source # |
Methods (==) :: Capitalization -> Capitalization -> Bool # (/=) :: Capitalization -> Capitalization -> Bool #
Show Capitalization Source # |
Methods showsPrec :: Int -> Capitalization -> ShowS # show :: Capitalization -> String # showList :: [Capitalization] -> ShowS #
ToJSON Capitalization Source # | ToJSON Capitalization
Methods toJSON :: Capitalization -> Value # toEncoding :: Capitalization -> Encoding # toJSONList :: [Capitalization] -> Value # toEncodingList :: [Capitalization] -> Encoding #
FromJSON Capitalization Source # | FromJSON Capitalization
Methods parseJSON :: Value -> Parser Capitalization # parseJSONList :: Value -> Parser [Capitalization] #

mkCapitalization :: Capitalization Source #

Construct a value of type `Capitalization` (by applying it's required fields, if any)

## Category

data Category Source #

Category

Constructors

Category |
Fields categoryId :: !(Maybe Integer) "id" categoryName :: !(Maybe Text) "name"

Instances

Eq Category Source # |
Methods (==) :: Category -> Category -> Bool # (/=) :: Category -> Category -> Bool #
Show Category Source # |
Methods showsPrec :: Int -> Category -> ShowS # show :: Category -> String # showList :: [Category] -> ShowS #
ToJSON Category Source # | ToJSON Category
Methods toJSON :: Category -> Value # toEncoding :: Category -> Encoding # toJSONList :: [Category] -> Value # toEncodingList :: [Category] -> Encoding #
FromJSON Category Source # | FromJSON Category
Methods parseJSON :: Value -> Parser Category # parseJSONList :: Value -> Parser [Category] #

mkCategory :: Category Source #

Construct a value of type `Category` (by applying it's required fields, if any)

## ClassModel

data ClassModel Source #

ClassModel Model for testing model with "_class" property

Constructors

ClassModel |
Fields classModelClass :: !(Maybe Text) "_class"

Instances

Eq ClassModel Source # |
Methods (==) :: ClassModel -> ClassModel -> Bool # (/=) :: ClassModel -> ClassModel -> Bool #
Show ClassModel Source # |
Methods showsPrec :: Int -> ClassModel -> ShowS # show :: ClassModel -> String # showList :: [ClassModel] -> ShowS #
ToJSON ClassModel Source # | ToJSON ClassModel
Methods toJSON :: ClassModel -> Value # toEncoding :: ClassModel -> Encoding # toJSONList :: [ClassModel] -> Value # toEncodingList :: [ClassModel] -> Encoding #
FromJSON ClassModel Source # | FromJSON ClassModel
Methods parseJSON :: Value -> Parser ClassModel # parseJSONList :: Value -> Parser [ClassModel] #

mkClassModel :: ClassModel Source #

Construct a value of type `ClassModel` (by applying it's required fields, if any)

## Client

data Client Source #

Client

Constructors

Client |
Fields clientClient :: !(Maybe Text) "client"

Instances

Eq Client Source # |
Methods (==) :: Client -> Client -> Bool # (/=) :: Client -> Client -> Bool #
Show Client Source # |
Methods showsPrec :: Int -> Client -> ShowS # show :: Client -> String # showList :: [Client] -> ShowS #
ToJSON Client Source # | ToJSON Client
Methods toJSON :: Client -> Value # toEncoding :: Client -> Encoding # toJSONList :: [Client] -> Value # toEncodingList :: [Client] -> Encoding #
FromJSON Client Source # | FromJSON Client
Methods parseJSON :: Value -> Parser Client # parseJSONList :: Value -> Parser [Client] #
HasBodyParam TestClassname Client Source # | Body Param "body" - client model
Methods setBodyParam :: (Consumes TestClassname contentType, MimeRender contentType Client) => SwaggerPetstoreRequest TestClassname contentType res -> Client -> SwaggerPetstoreRequest TestClassname contentType res Source #
HasBodyParam TestClientModel Client Source # | Body Param "body" - client model
Methods setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => SwaggerPetstoreRequest TestClientModel contentType res -> Client -> SwaggerPetstoreRequest TestClientModel contentType res Source #
HasBodyParam TestSpecialTags Client Source # | Body Param "body" - client model
Methods setBodyParam :: (Consumes TestSpecialTags contentType, MimeRender contentType Client) => SwaggerPetstoreRequest TestSpecialTags contentType res -> Client -> SwaggerPetstoreRequest TestSpecialTags contentType res Source #

mkClient :: Client Source #

Construct a value of type `Client` (by applying it's required fields, if any)

## EnumArrays

data EnumArrays Source #

EnumArrays

Constructors

EnumArrays |
Fields enumArraysJustSymbol :: !(Maybe Text) "just_symbol" enumArraysArrayEnum :: !(Maybe [Text]) "array_enum"

Instances

Eq EnumArrays Source # |
Methods (==) :: EnumArrays -> EnumArrays -> Bool # (/=) :: EnumArrays -> EnumArrays -> Bool #
Show EnumArrays Source # |
Methods showsPrec :: Int -> EnumArrays -> ShowS # show :: EnumArrays -> String # showList :: [EnumArrays] -> ShowS #
ToJSON EnumArrays Source # | ToJSON EnumArrays
Methods toJSON :: EnumArrays -> Value # toEncoding :: EnumArrays -> Encoding # toJSONList :: [EnumArrays] -> Value # toEncodingList :: [EnumArrays] -> Encoding #
FromJSON EnumArrays Source # | FromJSON EnumArrays
Methods parseJSON :: Value -> Parser EnumArrays # parseJSONList :: Value -> Parser [EnumArrays] #

mkEnumArrays :: EnumArrays Source #

Construct a value of type `EnumArrays` (by applying it's required fields, if any)

## EnumClass

data EnumClass Source #

EnumClass

Constructors

EnumClass |

Instances

Eq EnumClass Source # |
Methods (==) :: EnumClass -> EnumClass -> Bool # (/=) :: EnumClass -> EnumClass -> Bool #
Show EnumClass Source # |
Methods showsPrec :: Int -> EnumClass -> ShowS # show :: EnumClass -> String # showList :: [EnumClass] -> ShowS #
ToJSON EnumClass Source # | ToJSON EnumClass
Methods toJSON :: EnumClass -> Value # toEncoding :: EnumClass -> Encoding # toJSONList :: [EnumClass] -> Value # toEncodingList :: [EnumClass] -> Encoding #
FromJSON EnumClass Source # | FromJSON EnumClass
Methods parseJSON :: Value -> Parser EnumClass # parseJSONList :: Value -> Parser [EnumClass] #

mkEnumClass :: EnumClass Source #

Construct a value of type `EnumClass` (by applying it's required fields, if any)

## EnumTest

data EnumTest Source #

EnumTest

Constructors

EnumTest |
Fields enumTestEnumString :: !(Maybe Text) "enum_string" enumTestEnumInteger :: !(Maybe Int) "enum_integer" enumTestEnumNumber :: !(Maybe Double) "enum_number" enumTestOuterEnum :: !(Maybe OuterEnum) "outerEnum"

Instances

Eq EnumTest Source # |
Methods (==) :: EnumTest -> EnumTest -> Bool # (/=) :: EnumTest -> EnumTest -> Bool #
Show EnumTest Source # |
Methods showsPrec :: Int -> EnumTest -> ShowS # show :: EnumTest -> String # showList :: [EnumTest] -> ShowS #
ToJSON EnumTest Source # | ToJSON EnumTest
Methods toJSON :: EnumTest -> Value # toEncoding :: EnumTest -> Encoding # toJSONList :: [EnumTest] -> Value # toEncodingList :: [EnumTest] -> Encoding #
FromJSON EnumTest Source # | FromJSON EnumTest
Methods parseJSON :: Value -> Parser EnumTest # parseJSONList :: Value -> Parser [EnumTest] #

mkEnumTest :: EnumTest Source #

Construct a value of type `EnumTest` (by applying it's required fields, if any)

## FormatTest

data FormatTest Source #

FormatTest

Constructors

FormatTest |
Fields formatTestInteger :: !(Maybe Int) "integer" formatTestInt32 :: !(Maybe Int) "int32" formatTestInt64 :: !(Maybe Integer) "int64" formatTestNumber :: !Double Required "number" formatTestFloat :: !(Maybe Float) "float" formatTestDouble :: !(Maybe Double) "double" formatTestString :: !(Maybe Text) "string" formatTestByte :: !ByteArray Required "byte" formatTestBinary :: !(Maybe Binary) "binary" formatTestDate :: !Date Required "date" formatTestDateTime :: !(Maybe DateTime) "dateTime" formatTestUuid :: !(Maybe Text) "uuid" formatTestPassword :: !Text Required "password"

Instances

Eq FormatTest Source # |
Methods (==) :: FormatTest -> FormatTest -> Bool # (/=) :: FormatTest -> FormatTest -> Bool #
Show FormatTest Source # |
Methods showsPrec :: Int -> FormatTest -> ShowS # show :: FormatTest -> String # showList :: [FormatTest] -> ShowS #
ToJSON FormatTest Source # | ToJSON FormatTest
Methods toJSON :: FormatTest -> Value # toEncoding :: FormatTest -> Encoding # toJSONList :: [FormatTest] -> Value # toEncodingList :: [FormatTest] -> Encoding #
FromJSON FormatTest Source # | FromJSON FormatTest
Methods parseJSON :: Value -> Parser FormatTest # parseJSONList :: Value -> Parser [FormatTest] #

mkFormatTest Source #

Arguments

:: Double | `formatTestNumber`
-> ByteArray | `formatTestByte`
-> Date | `formatTestDate`
-> Text | `formatTestPassword`
-> FormatTest |

Construct a value of type `FormatTest` (by applying it's required fields, if any)

## HasOnlyReadOnly

data HasOnlyReadOnly Source #

HasOnlyReadOnly

Constructors

HasOnlyReadOnly |
Fields hasOnlyReadOnlyBar :: !(Maybe Text) "bar" hasOnlyReadOnlyFoo :: !(Maybe Text) "foo"

Instances

Eq HasOnlyReadOnly Source # |
Methods (==) :: HasOnlyReadOnly -> HasOnlyReadOnly -> Bool # (/=) :: HasOnlyReadOnly -> HasOnlyReadOnly -> Bool #
Show HasOnlyReadOnly Source # |
Methods showsPrec :: Int -> HasOnlyReadOnly -> ShowS # show :: HasOnlyReadOnly -> String # showList :: [HasOnlyReadOnly] -> ShowS #
ToJSON HasOnlyReadOnly Source # | ToJSON HasOnlyReadOnly
Methods toJSON :: HasOnlyReadOnly -> Value # toEncoding :: HasOnlyReadOnly -> Encoding # toJSONList :: [HasOnlyReadOnly] -> Value # toEncodingList :: [HasOnlyReadOnly] -> Encoding #
FromJSON HasOnlyReadOnly Source # | FromJSON HasOnlyReadOnly
Methods parseJSON :: Value -> Parser HasOnlyReadOnly # parseJSONList :: Value -> Parser [HasOnlyReadOnly] #

mkHasOnlyReadOnly :: HasOnlyReadOnly Source #

Construct a value of type `HasOnlyReadOnly` (by applying it's required fields, if any)

## MapTest

data MapTest Source #

MapTest

Constructors

MapTest |
Fields mapTestMapMapOfString :: !(Maybe (Map String (Map String Text))) "map_map_of_string" mapTestMapOfEnumString :: !(Maybe (Map String Text)) "map_of_enum_string"

Instances

Eq MapTest Source # |
Methods (==) :: MapTest -> MapTest -> Bool # (/=) :: MapTest -> MapTest -> Bool #
Show MapTest Source # |
Methods showsPrec :: Int -> MapTest -> ShowS # show :: MapTest -> String # showList :: [MapTest] -> ShowS #
ToJSON MapTest Source # | ToJSON MapTest
Methods toJSON :: MapTest -> Value # toEncoding :: MapTest -> Encoding # toJSONList :: [MapTest] -> Value # toEncodingList :: [MapTest] -> Encoding #
FromJSON MapTest Source # | FromJSON MapTest
Methods parseJSON :: Value -> Parser MapTest # parseJSONList :: Value -> Parser [MapTest] #

mkMapTest :: MapTest Source #

Construct a value of type `MapTest` (by applying it's required fields, if any)

## MixedPropertiesAndAdditionalPropertiesClass

data MixedPropertiesAndAdditionalPropertiesClass Source #

MixedPropertiesAndAdditionalPropertiesClass

Constructors

MixedPropertiesAndAdditionalPropertiesClass |
Fields mixedPropertiesAndAdditionalPropertiesClassUuid :: !(Maybe Text) "uuid" mixedPropertiesAndAdditionalPropertiesClassDateTime :: !(Maybe DateTime) "dateTime" mixedPropertiesAndAdditionalPropertiesClassMap :: !(Maybe (Map String Animal)) "map"

Instances

Eq MixedPropertiesAndAdditionalPropertiesClass Source # |
Methods (==) :: MixedPropertiesAndAdditionalPropertiesClass -> MixedPropertiesAndAdditionalPropertiesClass -> Bool # (/=) :: MixedPropertiesAndAdditionalPropertiesClass -> MixedPropertiesAndAdditionalPropertiesClass -> Bool #
Show MixedPropertiesAndAdditionalPropertiesClass Source # |
Methods showsPrec :: Int -> MixedPropertiesAndAdditionalPropertiesClass -> ShowS # show :: MixedPropertiesAndAdditionalPropertiesClass -> String # showList :: [MixedPropertiesAndAdditionalPropertiesClass] -> ShowS #
ToJSON MixedPropertiesAndAdditionalPropertiesClass Source # | ToJSON MixedPropertiesAndAdditionalPropertiesClass
Methods toJSON :: MixedPropertiesAndAdditionalPropertiesClass -> Value # toEncoding :: MixedPropertiesAndAdditionalPropertiesClass -> Encoding # toJSONList :: [MixedPropertiesAndAdditionalPropertiesClass] -> Value # toEncodingList :: [MixedPropertiesAndAdditionalPropertiesClass] -> Encoding #
FromJSON MixedPropertiesAndAdditionalPropertiesClass Source # | FromJSON MixedPropertiesAndAdditionalPropertiesClass
Methods parseJSON :: Value -> Parser MixedPropertiesAndAdditionalPropertiesClass # parseJSONList :: Value -> Parser [MixedPropertiesAndAdditionalPropertiesClass] #

mkMixedPropertiesAndAdditionalPropertiesClass :: MixedPropertiesAndAdditionalPropertiesClass Source #

Construct a value of type `MixedPropertiesAndAdditionalPropertiesClass` (by applying it's required fields, if any)

## Model200Response

data Model200Response Source #

Model200Response Model for testing model name starting with number

Constructors

Model200Response |
Fields model200ResponseName :: !(Maybe Int) "name" model200ResponseClass :: !(Maybe Text) "class"

Instances

Eq Model200Response Source # |
Methods (==) :: Model200Response -> Model200Response -> Bool # (/=) :: Model200Response -> Model200Response -> Bool #
Show Model200Response Source # |
Methods showsPrec :: Int -> Model200Response -> ShowS # show :: Model200Response -> String # showList :: [Model200Response] -> ShowS #
ToJSON Model200Response Source # | ToJSON Model200Response
Methods toJSON :: Model200Response -> Value # toEncoding :: Model200Response -> Encoding # toJSONList :: [Model200Response] -> Value # toEncodingList :: [Model200Response] -> Encoding #
FromJSON Model200Response Source # | FromJSON Model200Response
Methods parseJSON :: Value -> Parser Model200Response # parseJSONList :: Value -> Parser [Model200Response] #

mkModel200Response :: Model200Response Source #

Construct a value of type `Model200Response` (by applying it's required fields, if any)

## ModelList

data ModelList Source #

ModelList

Constructors

ModelList |
Fields modelList123List :: !(Maybe Text) "123-list"

Instances

Eq ModelList Source # |
Methods (==) :: ModelList -> ModelList -> Bool # (/=) :: ModelList -> ModelList -> Bool #
Show ModelList Source # |
Methods showsPrec :: Int -> ModelList -> ShowS # show :: ModelList -> String # showList :: [ModelList] -> ShowS #
ToJSON ModelList Source # | ToJSON ModelList
Methods toJSON :: ModelList -> Value # toEncoding :: ModelList -> Encoding # toJSONList :: [ModelList] -> Value # toEncodingList :: [ModelList] -> Encoding #
FromJSON ModelList Source # | FromJSON ModelList
Methods parseJSON :: Value -> Parser ModelList # parseJSONList :: Value -> Parser [ModelList] #

mkModelList :: ModelList Source #

Construct a value of type `ModelList` (by applying it's required fields, if any)

## ModelReturn

data ModelReturn Source #

ModelReturn Model for testing reserved words

Constructors

ModelReturn |
Fields modelReturnReturn :: !(Maybe Int) "return"

Instances

Eq ModelReturn Source # |
Methods (==) :: ModelReturn -> ModelReturn -> Bool # (/=) :: ModelReturn -> ModelReturn -> Bool #
Show ModelReturn Source # |
Methods showsPrec :: Int -> ModelReturn -> ShowS # show :: ModelReturn -> String # showList :: [ModelReturn] -> ShowS #
ToJSON ModelReturn Source # | ToJSON ModelReturn
Methods toJSON :: ModelReturn -> Value # toEncoding :: ModelReturn -> Encoding # toJSONList :: [ModelReturn] -> Value # toEncodingList :: [ModelReturn] -> Encoding #
FromJSON ModelReturn Source # | FromJSON ModelReturn
Methods parseJSON :: Value -> Parser ModelReturn # parseJSONList :: Value -> Parser [ModelReturn] #

mkModelReturn :: ModelReturn Source #

Construct a value of type `ModelReturn` (by applying it's required fields, if any)

## Name

data Name Source #

Name Model for testing model name same as property name

Constructors

Name |
Fields nameName :: !Int Required "name" nameSnakeCase :: !(Maybe Int) "snake_case" nameProperty :: !(Maybe Text) "property" name123Number :: !(Maybe Int) "123Number"

Instances

Eq Name Source # |
Methods (==) :: Name -> Name -> Bool # (/=) :: Name -> Name -> Bool #
Show Name Source # |
Methods showsPrec :: Int -> Name -> ShowS # show :: Name -> String # showList :: [Name] -> ShowS #
ToJSON Name Source # | ToJSON Name
Methods toJSON :: Name -> Value # toEncoding :: Name -> Encoding # toJSONList :: [Name] -> Value # toEncodingList :: [Name] -> Encoding #
FromJSON Name Source # | FromJSON Name
Methods parseJSON :: Value -> Parser Name # parseJSONList :: Value -> Parser [Name] #

mkName Source #

Arguments

:: Int | `nameName`
-> Name |

Construct a value of type `Name` (by applying it's required fields, if any)

## NumberOnly

data NumberOnly Source #

NumberOnly

Constructors

NumberOnly |
Fields numberOnlyJustNumber :: !(Maybe Double) JustNumber

Instances

Eq NumberOnly Source # |
Methods (==) :: NumberOnly -> NumberOnly -> Bool # (/=) :: NumberOnly -> NumberOnly -> Bool #
Show NumberOnly Source # |
Methods showsPrec :: Int -> NumberOnly -> ShowS # show :: NumberOnly -> String # showList :: [NumberOnly] -> ShowS #
ToJSON NumberOnly Source # | ToJSON NumberOnly
Methods toJSON :: NumberOnly -> Value # toEncoding :: NumberOnly -> Encoding # toJSONList :: [NumberOnly] -> Value # toEncodingList :: [NumberOnly] -> Encoding #
FromJSON NumberOnly Source # | FromJSON NumberOnly
Methods parseJSON :: Value -> Parser NumberOnly # parseJSONList :: Value -> Parser [NumberOnly] #

mkNumberOnly :: NumberOnly Source #

Construct a value of type `NumberOnly` (by applying it's required fields, if any)

## Order

data Order Source #

Order

Constructors

Order |
Fields orderId :: !(Maybe Integer) "id" orderPetId :: !(Maybe Integer) "petId" orderQuantity :: !(Maybe Int) "quantity" orderShipDate :: !(Maybe DateTime) "shipDate" orderStatus :: !(Maybe Text) "status" - Order Status orderComplete :: !(Maybe Bool) "complete"

Instances

Eq Order Source # |
Methods (==) :: Order -> Order -> Bool # (/=) :: Order -> Order -> Bool #
Show Order Source # |
Methods showsPrec :: Int -> Order -> ShowS # show :: Order -> String # showList :: [Order] -> ShowS #
ToJSON Order Source # | ToJSON Order
Methods toJSON :: Order -> Value # toEncoding :: Order -> Encoding # toJSONList :: [Order] -> Value # toEncodingList :: [Order] -> Encoding #
FromJSON Order Source # | FromJSON Order
Methods parseJSON :: Value -> Parser Order # parseJSONList :: Value -> Parser [Order] #
HasBodyParam PlaceOrder Order Source # | Body Param "body" - order placed for purchasing the pet
Methods setBodyParam :: (Consumes PlaceOrder contentType, MimeRender contentType Order) => SwaggerPetstoreRequest PlaceOrder contentType res -> Order -> SwaggerPetstoreRequest PlaceOrder contentType res Source #

mkOrder :: Order Source #

Construct a value of type `Order` (by applying it's required fields, if any)

## OuterBoolean

newtype OuterBoolean Source #

OuterBoolean

Constructors

OuterBoolean |
Fields unOuterBoolean :: Bool

Instances

Eq OuterBoolean Source # |
Methods (==) :: OuterBoolean -> OuterBoolean -> Bool # (/=) :: OuterBoolean -> OuterBoolean -> Bool #
Show OuterBoolean Source # |
Methods showsPrec :: Int -> OuterBoolean -> ShowS # show :: OuterBoolean -> String # showList :: [OuterBoolean] -> ShowS #
ToJSON OuterBoolean Source # |
Methods toJSON :: OuterBoolean -> Value # toEncoding :: OuterBoolean -> Encoding # toJSONList :: [OuterBoolean] -> Value # toEncodingList :: [OuterBoolean] -> Encoding #
FromJSON OuterBoolean Source # |
Methods parseJSON :: Value -> Parser OuterBoolean # parseJSONList :: Value -> Parser [OuterBoolean] #
ToHttpApiData OuterBoolean Source # |
Methods toUrlPiece :: OuterBoolean -> Text # toEncodedUrlPiece :: OuterBoolean -> Builder # toHeader :: OuterBoolean -> ByteString # toQueryParam :: OuterBoolean -> Text #
FromHttpApiData OuterBoolean Source # |
Methods parseUrlPiece :: Text -> Either Text OuterBoolean # parseHeader :: ByteString -> Either Text OuterBoolean # parseQueryParam :: Text -> Either Text OuterBoolean #
HasBodyParam FakeOuterBooleanSerialize OuterBoolean Source # | Body Param "body" - Input boolean as post body
Methods setBodyParam :: (Consumes FakeOuterBooleanSerialize contentType, MimeRender contentType OuterBoolean) => SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType res -> OuterBoolean -> SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType res Source #

## OuterComposite

data OuterComposite Source #

OuterComposite

Constructors

OuterComposite |
Fields outerCompositeMyNumber :: !(Maybe OuterNumber) "my_number" outerCompositeMyString :: !(Maybe OuterString) "my_string" outerCompositeMyBoolean :: !(Maybe OuterBoolean) "my_boolean"

Instances

Eq OuterComposite Source # |
Methods (==) :: OuterComposite -> OuterComposite -> Bool # (/=) :: OuterComposite -> OuterComposite -> Bool #
Show OuterComposite Source # |
Methods showsPrec :: Int -> OuterComposite -> ShowS # show :: OuterComposite -> String # showList :: [OuterComposite] -> ShowS #
ToJSON OuterComposite Source # | ToJSON OuterComposite
Methods toJSON :: OuterComposite -> Value # toEncoding :: OuterComposite -> Encoding # toJSONList :: [OuterComposite] -> Value # toEncodingList :: [OuterComposite] -> Encoding #
FromJSON OuterComposite Source # | FromJSON OuterComposite
Methods parseJSON :: Value -> Parser OuterComposite # parseJSONList :: Value -> Parser [OuterComposite] #
HasBodyParam FakeOuterCompositeSerialize OuterComposite Source # | Body Param "body" - Input composite as post body
Methods setBodyParam :: (Consumes FakeOuterCompositeSerialize contentType, MimeRender contentType OuterComposite) => SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType res -> OuterComposite -> SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType res Source #

mkOuterComposite :: OuterComposite Source #

Construct a value of type `OuterComposite` (by applying it's required fields, if any)

## OuterEnum

data OuterEnum Source #

OuterEnum

Constructors

OuterEnum |

Instances

Eq OuterEnum Source # |
Methods (==) :: OuterEnum -> OuterEnum -> Bool # (/=) :: OuterEnum -> OuterEnum -> Bool #
Show OuterEnum Source # |
Methods showsPrec :: Int -> OuterEnum -> ShowS # show :: OuterEnum -> String # showList :: [OuterEnum] -> ShowS #
ToJSON OuterEnum Source # | ToJSON OuterEnum
Methods toJSON :: OuterEnum -> Value # toEncoding :: OuterEnum -> Encoding # toJSONList :: [OuterEnum] -> Value # toEncodingList :: [OuterEnum] -> Encoding #
FromJSON OuterEnum Source # | FromJSON OuterEnum
Methods parseJSON :: Value -> Parser OuterEnum # parseJSONList :: Value -> Parser [OuterEnum] #

mkOuterEnum :: OuterEnum Source #

Construct a value of type `OuterEnum` (by applying it's required fields, if any)

## OuterNumber

newtype OuterNumber Source #

OuterNumber

Constructors

OuterNumber |
Fields unOuterNumber :: Double

Instances

Eq OuterNumber Source # |
Methods (==) :: OuterNumber -> OuterNumber -> Bool # (/=) :: OuterNumber -> OuterNumber -> Bool #
Show OuterNumber Source # |
Methods showsPrec :: Int -> OuterNumber -> ShowS # show :: OuterNumber -> String # showList :: [OuterNumber] -> ShowS #
ToJSON OuterNumber Source # |
Methods toJSON :: OuterNumber -> Value # toEncoding :: OuterNumber -> Encoding # toJSONList :: [OuterNumber] -> Value # toEncodingList :: [OuterNumber] -> Encoding #
FromJSON OuterNumber Source # |
Methods parseJSON :: Value -> Parser OuterNumber # parseJSONList :: Value -> Parser [OuterNumber] #
ToHttpApiData OuterNumber Source # |
Methods toUrlPiece :: OuterNumber -> Text # toEncodedUrlPiece :: OuterNumber -> Builder # toHeader :: OuterNumber -> ByteString # toQueryParam :: OuterNumber -> Text #
FromHttpApiData OuterNumber Source # |
Methods parseUrlPiece :: Text -> Either Text OuterNumber # parseHeader :: ByteString -> Either Text OuterNumber # parseQueryParam :: Text -> Either Text OuterNumber #
HasBodyParam FakeOuterNumberSerialize OuterNumber Source # | Body Param "body" - Input number as post body
Methods setBodyParam :: (Consumes FakeOuterNumberSerialize contentType, MimeRender contentType OuterNumber) => SwaggerPetstoreRequest FakeOuterNumberSerialize contentType res -> OuterNumber -> SwaggerPetstoreRequest FakeOuterNumberSerialize contentType res Source #

## OuterString

newtype OuterString Source #

OuterString

Constructors

OuterString |
Fields unOuterString :: Text

Instances

Eq OuterString Source # |
Methods (==) :: OuterString -> OuterString -> Bool # (/=) :: OuterString -> OuterString -> Bool #
Show OuterString Source # |
Methods showsPrec :: Int -> OuterString -> ShowS # show :: OuterString -> String # showList :: [OuterString] -> ShowS #
ToJSON OuterString Source # |
Methods toJSON :: OuterString -> Value # toEncoding :: OuterString -> Encoding # toJSONList :: [OuterString] -> Value # toEncodingList :: [OuterString] -> Encoding #
FromJSON OuterString Source # |
Methods parseJSON :: Value -> Parser OuterString # parseJSONList :: Value -> Parser [OuterString] #
ToHttpApiData OuterString Source # |
Methods toUrlPiece :: OuterString -> Text # toEncodedUrlPiece :: OuterString -> Builder # toHeader :: OuterString -> ByteString # toQueryParam :: OuterString -> Text #
FromHttpApiData OuterString Source # |
Methods parseUrlPiece :: Text -> Either Text OuterString # parseHeader :: ByteString -> Either Text OuterString # parseQueryParam :: Text -> Either Text OuterString #
HasBodyParam FakeOuterStringSerialize OuterString Source # | Body Param "body" - Input string as post body
Methods setBodyParam :: (Consumes FakeOuterStringSerialize contentType, MimeRender contentType OuterString) => SwaggerPetstoreRequest FakeOuterStringSerialize contentType res -> OuterString -> SwaggerPetstoreRequest FakeOuterStringSerialize contentType res Source #

## Pet

data Pet Source #

Pet

Constructors

Pet |
Fields petId :: !(Maybe Integer) "id" petCategory :: !(Maybe Category) "category" petName :: !Text Required "name" petPhotoUrls :: ![Text] Required "photoUrls" petTags :: !(Maybe [Tag]) "tags" petStatus :: !(Maybe Text) "status" - pet status in the store

Instances

Eq Pet Source # |
Methods (==) :: Pet -> Pet -> Bool # (/=) :: Pet -> Pet -> Bool #
Show Pet Source # |
Methods showsPrec :: Int -> Pet -> ShowS # show :: Pet -> String # showList :: [Pet] -> ShowS #
ToJSON Pet Source # | ToJSON Pet
Methods toJSON :: Pet -> Value # toEncoding :: Pet -> Encoding # toJSONList :: [Pet] -> Value # toEncodingList :: [Pet] -> Encoding #
FromJSON Pet Source # | FromJSON Pet
Methods parseJSON :: Value -> Parser Pet # parseJSONList :: Value -> Parser [Pet] #
HasBodyParam UpdatePet Pet Source # | Body Param "body" - Pet object that needs to be added to the store
Methods setBodyParam :: (Consumes UpdatePet contentType, MimeRender contentType Pet) => SwaggerPetstoreRequest UpdatePet contentType res -> Pet -> SwaggerPetstoreRequest UpdatePet contentType res Source #
HasBodyParam AddPet Pet Source # | Body Param "body" - Pet object that needs to be added to the store
Methods setBodyParam :: (Consumes AddPet contentType, MimeRender contentType Pet) => SwaggerPetstoreRequest AddPet contentType res -> Pet -> SwaggerPetstoreRequest AddPet contentType res Source #

mkPet Source #

Arguments

:: Text | `petName`
-> [Text] | `petPhotoUrls`
-> Pet |

Construct a value of type `Pet` (by applying it's required fields, if any)

## ReadOnlyFirst

data ReadOnlyFirst Source #

ReadOnlyFirst

Constructors

ReadOnlyFirst |
Fields readOnlyFirstBar :: !(Maybe Text) "bar" readOnlyFirstBaz :: !(Maybe Text) "baz"

Instances

Eq ReadOnlyFirst Source # |
Methods (==) :: ReadOnlyFirst -> ReadOnlyFirst -> Bool # (/=) :: ReadOnlyFirst -> ReadOnlyFirst -> Bool #
Show ReadOnlyFirst Source # |
Methods showsPrec :: Int -> ReadOnlyFirst -> ShowS # show :: ReadOnlyFirst -> String # showList :: [ReadOnlyFirst] -> ShowS #
ToJSON ReadOnlyFirst Source # | ToJSON ReadOnlyFirst
Methods toJSON :: ReadOnlyFirst -> Value # toEncoding :: ReadOnlyFirst -> Encoding # toJSONList :: [ReadOnlyFirst] -> Value # toEncodingList :: [ReadOnlyFirst] -> Encoding #
FromJSON ReadOnlyFirst Source # | FromJSON ReadOnlyFirst
Methods parseJSON :: Value -> Parser ReadOnlyFirst # parseJSONList :: Value -> Parser [ReadOnlyFirst] #

mkReadOnlyFirst :: ReadOnlyFirst Source #

Construct a value of type `ReadOnlyFirst` (by applying it's required fields, if any)

## SpecialModelName

data SpecialModelName Source #

SpecialModelName

Constructors

SpecialModelName |
Fields specialModelNameSpecialPropertyName :: !(Maybe Integer) "$special[property.name]"

Instances

Eq SpecialModelName Source # |
Methods (==) :: SpecialModelName -> SpecialModelName -> Bool # (/=) :: SpecialModelName -> SpecialModelName -> Bool #
Show SpecialModelName Source # |
Methods showsPrec :: Int -> SpecialModelName -> ShowS # show :: SpecialModelName -> String # showList :: [SpecialModelName] -> ShowS #
ToJSON SpecialModelName Source # | ToJSON SpecialModelName
Methods toJSON :: SpecialModelName -> Value # toEncoding :: SpecialModelName -> Encoding # toJSONList :: [SpecialModelName] -> Value # toEncodingList :: [SpecialModelName] -> Encoding #
FromJSON SpecialModelName Source # | FromJSON SpecialModelName
Methods parseJSON :: Value -> Parser SpecialModelName # parseJSONList :: Value -> Parser [SpecialModelName] #

mkSpecialModelName :: SpecialModelName Source #

Construct a value of type `SpecialModelName` (by applying it's required fields, if any)

## Tag

data Tag Source #

Tag

Constructors

Tag |
Fields tagId :: !(Maybe Integer) "id" tagName :: !(Maybe Text) "name"

Instances

Eq Tag Source # |
Methods (==) :: Tag -> Tag -> Bool # (/=) :: Tag -> Tag -> Bool #
Show Tag Source # |
Methods showsPrec :: Int -> Tag -> ShowS # show :: Tag -> String # showList :: [Tag] -> ShowS #
ToJSON Tag Source # | ToJSON Tag
Methods toJSON :: Tag -> Value # toEncoding :: Tag -> Encoding # toJSONList :: [Tag] -> Value # toEncodingList :: [Tag] -> Encoding #
FromJSON Tag Source # | FromJSON Tag
Methods parseJSON :: Value -> Parser Tag # parseJSONList :: Value -> Parser [Tag] #

mkTag :: Tag Source #

Construct a value of type `Tag` (by applying it's required fields, if any)

## User

data User Source #

User

Constructors

User |
Fields userId :: !(Maybe Integer) "id" userUsername :: !(Maybe Text) "username" userFirstName :: !(Maybe Text) "firstName" userLastName :: !(Maybe Text) "lastName" userEmail :: !(Maybe Text) "email" userPassword :: !(Maybe Text) "password" userPhone :: !(Maybe Text) "phone" userUserStatus :: !(Maybe Int) "userStatus" - User Status

Instances

Eq User Source # |
Methods (==) :: User -> User -> Bool # (/=) :: User -> User -> Bool #
Show User Source # |
Methods showsPrec :: Int -> User -> ShowS # show :: User -> String # showList :: [User] -> ShowS #
ToJSON User Source # | ToJSON User
Methods toJSON :: User -> Value # toEncoding :: User -> Encoding # toJSONList :: [User] -> Value # toEncodingList :: [User] -> Encoding #
FromJSON User Source # | FromJSON User
Methods parseJSON :: Value -> Parser User # parseJSONList :: Value -> Parser [User] #
HasBodyParam UpdateUser User Source # | Body Param "body" - Updated user object
Methods setBodyParam :: (Consumes UpdateUser contentType, MimeRender contentType User) => SwaggerPetstoreRequest UpdateUser contentType res -> User -> SwaggerPetstoreRequest UpdateUser contentType res Source #
HasBodyParam CreateUser User Source # | Body Param "body" - Created user object
Methods setBodyParam :: (Consumes CreateUser contentType, MimeRender contentType User) => SwaggerPetstoreRequest CreateUser contentType res -> User -> SwaggerPetstoreRequest CreateUser contentType res Source #

mkUser :: User Source #

Construct a value of type `User` (by applying it's required fields, if any)

## Cat

data Cat Source #

Cat

Constructors

Cat |
Fields catClassName :: !Text Required "className" catColor :: !(Maybe Text) "color" catDeclawed :: !(Maybe Bool) "declawed"

Instances

Eq Cat Source # |
Methods (==) :: Cat -> Cat -> Bool # (/=) :: Cat -> Cat -> Bool #
Show Cat Source # |
Methods showsPrec :: Int -> Cat -> ShowS # show :: Cat -> String # showList :: [Cat] -> ShowS #
ToJSON Cat Source # | ToJSON Cat
Methods toJSON :: Cat -> Value # toEncoding :: Cat -> Encoding # toJSONList :: [Cat] -> Value # toEncodingList :: [Cat] -> Encoding #
FromJSON Cat Source # | FromJSON Cat
Methods parseJSON :: Value -> Parser Cat # parseJSONList :: Value -> Parser [Cat] #

mkCat Source #

Arguments

:: Text | `catClassName`
-> Cat |

Construct a value of type `Cat` (by applying it's required fields, if any)

## Dog

data Dog Source #

Dog

Constructors

Dog |
Fields dogClassName :: !Text Required "className" dogColor :: !(Maybe Text) "color" dogBreed :: !(Maybe Text) "breed"

Instances

Eq Dog Source # |
Methods (==) :: Dog -> Dog -> Bool # (/=) :: Dog -> Dog -> Bool #
Show Dog Source # |
Methods showsPrec :: Int -> Dog -> ShowS # show :: Dog -> String # showList :: [Dog] -> ShowS #
ToJSON Dog Source # | ToJSON Dog
Methods toJSON :: Dog -> Value # toEncoding :: Dog -> Encoding # toJSONList :: [Dog] -> Value # toEncodingList :: [Dog] -> Encoding #
FromJSON Dog Source # | FromJSON Dog
Methods parseJSON :: Value -> Parser Dog # parseJSONList :: Value -> Parser [Dog] #

mkDog Source #

Arguments

:: Text | `dogClassName`
-> Dog |

Construct a value of type `Dog` (by applying it's required fields, if any)