You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
Hi @ydarias .
I'm afraid to say that #24 does not fix this problem. I only submitted a PR ( #25 ) to fix #24. Problem still remains.
I just tried to explain current problem with generation script on the same way as validation one. Even one guess, based on the given returned message, as I only got basic Python skills.
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
?The text was updated successfully, but these errors were encountered: