Skip to content

Problem when executing Python Generation Script #26

Open
@ignapzs

Description

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 ?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions