Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFormatMappings = map[ir.IRFormat]generators.FormatTypeMapping{ ir.IRFormatByte: {Type: "bytes"}, ir.IRFormatDateTime: {Type: "datetime", Import: "datetime"}, ir.IRFormatDate: {Type: "date", Import: "datetime"}, ir.IRFormatUUID: {Type: "UUID", Import: "uuid"}, ir.IRFormatEmail: {Type: "EmailStr", Import: "pydantic"}, ir.IRFormatURI: {Type: "AnyUrl", Import: "pydantic"}, }
DefaultFormatMappings provides sensible defaults for JSON Schema formats in Python
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct{}
func (*Generator) Generate ¶
func (g *Generator) Generate(data *ir.IR, opts generators.GeneratorOptions, genOpts ...generators.GeneratorOption) ([]generators.GeneratedFile, error)
Click to show internal directories.
Click to hide internal directories.