Consistently use json.RawMessage
Special-case nullable schema
readme: add links to mailing list and IRC
A JSON schema code generator for Go.
JSON schema draft 2020-12 is supported.
jsonschemagen -s <schema> -o <output>
One Go type per definition will be generated.
int64
is used for "type": "integer"
.json.Number
is used for "type": "number"
."additionalProperties": false
.json.RawMessage
is used when a value can have multiple types. Helpers are
generated for allOf
, anyOf
, oneOf
, then
, else
and dependantSchemas
which are references.Report bugs and send patches to the mailing list. Discuss in #emersion on Libera Chat.
MIT