After reading the scripts README, and proceed to create the virtual environment with all the required dependencies, I came across the following problem:
When executing
❯ python ./jsonschema_generator.py ../../schema/schema.json -o example1.json
then the following error appears
Traceback (most recent call last):
[....]
File "[......]/mac/scripts/python_validator/./jsonschema_generator.py", line 52, in generate_dict
generator = self.get_generator(v["type"])
KeyError: 'type'
Could this be related to each of the different element definitions like
#/$defs/person or #/$defs/location ?
After reading the scripts README, and proceed to create the virtual environment with all the required dependencies, I came across the following problem:
When executing
❯ python ./jsonschema_generator.py ../../schema/schema.json -o example1.jsonthen the following error appears
Traceback (most recent call last):[....]File "[......]/mac/scripts/python_validator/./jsonschema_generator.py", line 52, in generate_dictgenerator = self.get_generator(v["type"])KeyError: 'type'Could this be related to each of the different element definitions like
#/$defs/personor#/$defs/location?