nickel-lang / json-schema-to-nickel

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

Don't panic on external refs #70

Closed yannham closed 3 months ago

yannham commented 3 months ago

Closes #48.

Using external schemas as references is not supported by the current version of json-schema-to-nickel. The previous implemented just panicked, which is unfortunate as it's an all-or-nothing approach: if there's a ref somewhere in a schema, you just can't do anything with it.

This commit adopts a middle ground by warning about unfollowed external refs, and substitute them for Dyn contracts.