go-jsonschema/README.md
2022-10-07 11:55:30 +02:00

19 lines
482 B
Markdown

# go-jsonschema
A JSON schema code generator for Go.
## Usage
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"`.
- Go structs are generated for objects with `"additionalProperties": false`.
- `json.RawMessage` is used when a value can have multiple types. Helpers are
generated for `allOf`, `anyOf`, `oneOf` which are references.
## License
MIT