Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- declareNamedSchemaViaCodec :: HasCodec value => Proxy value -> Declare (Definitions Schema) NamedSchema
- declareNamedSchemaVia :: JSONCodec value -> Proxy value -> Declare (Definitions Schema) NamedSchema
- module Autodocodec.Swagger.Schema
Documentation
declareNamedSchemaViaCodec :: HasCodec value => Proxy value -> Declare (Definitions Schema) NamedSchema Source #
Use a type's codec
to implement declareNamedSchema
.
declareNamedSchemaVia :: JSONCodec value -> Proxy value -> Declare (Definitions Schema) NamedSchema Source #
Use a given codec
to implement declareNamedSchema
.
To makes sure we definitely export everything.
module Autodocodec.Swagger.Schema