Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Created March 19, 2019 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/3da9f124df1ca6aa8f879225b7290597 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/3da9f124df1ca6aa8f879225b7290597 to your computer and use it in GitHub Desktop.
JSON Schema Relative References

JSON Schema Relative References

You may need this:

parameters_schema_resolver = jsonschema.RefResolver(
    base_uri='file://{}/'.format(current_dir), referrer=parameters_schema)

jsonschema.validate(
    instance=parameters,
    schema=parameters_schema,
    resolver=parameters_schema_resolver)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment