| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Schema.OpenAPI.Types
Documentation
Constructors
| Tag | |
Fields
| |
Constructors
| Variable | |
Fields | |
Constructors
| Url | |
Fields
| |
Constructors
| NameUrl | |
Fields
| |
Constructors
| Info | |
Fields
| |
data SchemaType Source #
Constructors
Instances
| Show SchemaType Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaType -> ShowS # show :: SchemaType -> String # showList :: [SchemaType] -> ShowS # | |
| ToJSON SchemaType Source # | |
Defined in Data.Schema.OpenAPI.Types Methods toJSON :: SchemaType -> Value # toEncoding :: SchemaType -> Encoding # toJSONList :: [SchemaType] -> Value # toEncodingList :: [SchemaType] -> Encoding # omitField :: SchemaType -> Bool # | |
| FromJSON SchemaType Source # | |
Defined in Data.Schema.OpenAPI.Types | |
parseSingleSchema :: KeyMap Value -> Value -> Parser SchemaType Source #
parseInferredSchema :: KeyMap Value -> Maybe (Parser SchemaType) Source #
data SchemaCommon a example Source #
Constructors
| SchemaCommon | |
Fields
| |
Instances
| (Show a, Show example) => Show (SchemaCommon a example) Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaCommon a example -> ShowS # show :: SchemaCommon a example -> String # showList :: [SchemaCommon a example] -> ShowS # | |
encodeCommon :: (ToJSON a, ToJSON example) => SchemaCommon a example -> [Pair] Source #
decodeCommon :: (FromJSON a, FromJSON example) => KeyMap Value -> Parser (SchemaCommon a example) Source #
data SchemaEmpty Source #
Constructors
| SchemaEmpty | |
Fields | |
Instances
| Show SchemaEmpty Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaEmpty -> ShowS # show :: SchemaEmpty -> String # showList :: [SchemaEmpty] -> ShowS # | |
data SchemaQuantifier Source #
Constructors
| SchemaQuantifier | |
Fields | |
Instances
| Show SchemaQuantifier Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaQuantifier -> ShowS # show :: SchemaQuantifier -> String # showList :: [SchemaQuantifier] -> ShowS # | |
parseQuantifier :: KeyMap Value -> Maybe (Parser SchemaType) Source #
data AdditionalProperties Source #
Instances
| Show AdditionalProperties Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> AdditionalProperties -> ShowS # show :: AdditionalProperties -> String # showList :: [AdditionalProperties] -> ShowS # | |
| ToJSON AdditionalProperties Source # | |
Defined in Data.Schema.OpenAPI.Types Methods toJSON :: AdditionalProperties -> Value # toEncoding :: AdditionalProperties -> Encoding # toJSONList :: [AdditionalProperties] -> Value # toEncodingList :: [AdditionalProperties] -> Encoding # omitField :: AdditionalProperties -> Bool # | |
| FromJSON AdditionalProperties Source # | |
Defined in Data.Schema.OpenAPI.Types Methods parseJSON :: Value -> Parser AdditionalProperties # parseJSONList :: Value -> Parser [AdditionalProperties] # | |
data SchemaObject Source #
Constructors
Instances
| Show SchemaObject Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaObject -> ShowS # show :: SchemaObject -> String # showList :: [SchemaObject] -> ShowS # | |
data SchemaArray Source #
Constructors
| SchemaArray | |
Fields | |
Instances
| Show SchemaArray Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaArray -> ShowS # show :: SchemaArray -> String # showList :: [SchemaArray] -> ShowS # | |
data StringExample Source #
Constructors
| StringExampleString Text | |
| StringExampleArray [Text] |
Instances
| Show StringExample Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> StringExample -> ShowS # show :: StringExample -> String # showList :: [StringExample] -> ShowS # | |
| ToJSON StringExample Source # | |
Defined in Data.Schema.OpenAPI.Types Methods toJSON :: StringExample -> Value # toEncoding :: StringExample -> Encoding # toJSONList :: [StringExample] -> Value # toEncodingList :: [StringExample] -> Encoding # omitField :: StringExample -> Bool # | |
| FromJSON StringExample Source # | |
Defined in Data.Schema.OpenAPI.Types Methods parseJSON :: Value -> Parser StringExample # parseJSONList :: Value -> Parser [StringExample] # | |
data SchemaString Source #
Constructors
Instances
| Show SchemaString Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaString -> ShowS # show :: SchemaString -> String # showList :: [SchemaString] -> ShowS # | |
newtype SchemaBoolean Source #
Constructors
| SchemaBoolean | |
Fields | |
Instances
| Show SchemaBoolean Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaBoolean -> ShowS # show :: SchemaBoolean -> String # showList :: [SchemaBoolean] -> ShowS # | |
data SchemaNumber int Source #
Constructors
| SchemaNumber | |
Fields
| |
Instances
| Show int => Show (SchemaNumber int) Source # | |
Defined in Data.Schema.OpenAPI.Types Methods showsPrec :: Int -> SchemaNumber int -> ShowS # show :: SchemaNumber int -> String # showList :: [SchemaNumber int] -> ShowS # | |
Constructors
| Content | |
Fields | |
Constructors
| Header | |
Fields | |
Constructors
| Response | |
Fields | |
Constructors
| Request | |
Fields | |
Constructors
| Parameter | |
Fields | |
Constructors
| Method | |
Fields
| |
Constructors
| Path | |
Constructors
| Spec | |
Fields
| |
resolveRefs :: Value -> Value Source #
removeNulls :: ToJSON a => a -> Value Source #