Skip to content

Commit

Permalink
feat(ingest/jsonschema) enable schema-aware JsonSchemaTranslator (#…
Browse files Browse the repository at this point in the history
…8971)

Co-authored-by: Harshal Sheth <[email protected]>
  • Loading branch information
KulykDmytro and hsheth2 authored Oct 30, 2023
1 parent 3f4ab44 commit 758ed47
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,8 @@ def get_fields_from_schema(
jsonref_schema_dict = schema_dict
else:
# first validate the schema using a json validator
jsonschema.Draft7Validator.check_schema(schema_dict)
validator = jsonschema.validators.validator_for(schema_dict)
validator.check_schema(schema_dict)
# then apply jsonref
jsonref_schema_dict = jsonref.loads(schema_string)
except Exception as e:
Expand Down

0 comments on commit 758ed47

Please sign in to comment.