Closed port-b closed 8 months ago
You have your arguments reversed, so you validated the metaschema under your schema, rather than your schema under the metaschema.
You mean jsonschema.validate(input_schema, validator)
or jsonschema.validators.Draft7Validator.check_schema(input_schema)
.
I am trying to validate python dicts, to check if they are a valid JSON schema. I pulled a schema from https://json-schema.org/learn/miscellaneous-examples#complex-object-with-nested-properties to test it with here is my code:
I am getting the following exception
I would expect this to be a valid schema?