nickel-lang / json-schema-to-nickel

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

Handle `additionalProperties` in references #76

Closed yannham closed 3 months ago

yannham commented 3 months ago

Depends on #75.

This commit adds support for additionalProperties in schema references. Doing so, we also avoid to get missing field errors when a reference can't be found or isn't properly supported (e.g. nested definitions), and instead return an always succeeding contract. This unveiled that some tests were passing by sheer luck, so they've been disabled as well.