jacksmith15 / statham-schema

Statham is a Python Model Parsing Library for JSON Schema.
https://statham-schema.readthedocs.io/en/latest/
MIT License
39 stars 10 forks source link

Support for remote references #7

Closed jacksmith15 closed 4 years ago

jacksmith15 commented 4 years ago

Currently this tool only supports $ref values which point to local schemas (i.e. are just JSON Pointers to somewhere within the same document).

This can easily be resolved by accepting a base_uri (or inferring it from the input document's $id), and resolving those references at the initial de-referencing stage.

Its likely that the jsonschema library can be used to help with this.