nickel-lang / json-schema-to-nickel

Convert JSON schemas into Nickel contracts
Apache License 2.0
32 stars 0 forks source link

Generate record contracts for some JSON schemas #3

Closed vkleen closed 1 year ago

vkleen commented 1 year ago

This is a first attempt at generating Nickel record contracts instead of predicates for some JSON schemas. It only works for schemas that specify an instance_type of "object" and contain only the JSON schema keywords properties and required. For additionalProperties only a boolean schema true or false is supported.