a-h / generate

Generates Go (golang) Structs from JSON schema.
MIT License
444 stars 137 forks source link

Add "constructor" functions and Validation? #11

Open MaerF0x0 opened 7 years ago

MaerF0x0 commented 7 years ago

This package could use the addition of validators and constructors (func NewX ) . This will help enforce the json schema validators such as the built in formats found here https://spacetelescope.github.io/understanding-json-schema/reference/string.html#built-in-formats