Maintainer | Nickolay Kudasov <nickolay@getshoptv.com> |
---|---|
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Generic deriving options for
and
ToParamSchema
.
ToSchema
Synopsis
- data SchemaOptions = SchemaOptions { }
- defaultSchemaOptions :: SchemaOptions
- fromAesonOptions :: Options -> SchemaOptions
Documentation
data SchemaOptions Source #
Options that specify how to encode your type to Swagger schema.
SchemaOptions | |
|
defaultSchemaOptions :: SchemaOptions Source #
Default encoding
.
SchemaOptions
SchemaOptions
{fieldLabelModifier
= id ,constructorTagModifier
= id ,datatypeNameModifier
= id ,allNullaryToStringTag
= True ,unwrapUnaryRecords
= False ,sumEncoding
=defaultTaggedObject
}
fromAesonOptions :: Options -> SchemaOptions Source #
Convert
Options
to
SchemaOptions
.
Specifically the following fields get copied:
Note that these fields have no effect on
SchemaOptions
:
The rest is defined as in
defaultSchemaOptions
.
Since: 2.2.1