Skip to content

failed to create schema: yaml: control characters are not allowed when using on JSON file #15

@Bobronium

Description

@Bobronium

When running this:

$ genjsonschema-cli create result.json

I get

Encountered an error: failed to create schema: yaml: control characters are not allowed

Just to make sure that json is valid, I've used python builtin library to check it:

$ python -c "import json; json.load(open('result.json'))"

I've tried to use genjsonschema-cli on other files and it worked fine.

In case it's important: the file in question weights ~1.9 GB.

I suppose the library erroneously detects it as a yaml?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions