Skip to content

Unable to validate via cli #24

@pkaramol

Description

@pkaramol

I am trying to validate a file against a schema as follows:

$ jsonschema -i /path/to/schema.json test.json

It fails with this message:

usage: jsonschema [-h] [-i INSTANCES] [-F ERROR_FORMAT] [-V VALIDATOR] schema
jsonschema: error: argument -i/--instance: invalid _json_file value: '/path/to/schema.json'

However, when validating the schema itself in an online json validator, e.g. this one, it succeeds.

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