SHARE
TWEET

Untitled

a guest Mar 24th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # JSON Schema Relative References
  2.  
  3. You may need this:
  4.  
  5. ```py
  6. parameters_schema_resolver = jsonschema.RefResolver(
  7.     base_uri='file://{}/'.format(current_dir), referrer=parameters_schema)
  8.  
  9. jsonschema.validate(
  10.     instance=parameters,
  11.     schema=parameters_schema,
  12.     resolver=parameters_schema_resolver)
  13. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top