swagger-0.2.1: Implementation of swagger data model

Safe HaskellNone
LanguageHaskell2010

Data.Swagger.Model.Api

Description

The API Declaration part of the swagger specification. For construction please consider using Data.Swagger.Build.Api.

Synopsis

Documentation

data API Source

Constructors

API 

Instances

data DataType where Source

Constructors

Prim :: (Show a, ToJSON a) => Primitive a -> DataType 
Array :: (Show a, ToJSON a) => Items a -> Maybe Bool -> DataType 
Ref :: ModelId -> DataType 

Instances

data Primitive a Source

Constructors

Primitive 

Fields

primType :: PrimType
 
defaultValue :: Maybe a
 
enum :: Maybe [a]
 
minVal :: Maybe a
 
maxVal :: Maybe a
 

Instances

Show a => Show (Primitive a) 

data Items a Source

Instances

Show a => Show (Items a) 

data File Source

Constructors

File 

Instances