Skip to content

jsonschema: error: argument -i/--instance: invalid _json_file value #489

Closed
@Benjamin-Lee

Description

@Benjamin-Lee

This seems related to #299, but by reading the thread, I still don't have a clear idea of what I need to do in order to fix this problem.

(env) Benjamins-MacBook-Pro-9:flow-chem BenjaminLee$ jsonschema -i schemas/apparatus_example.json schemas/apparatus.schema.json
usage: jsonschema [-h] [-i INSTANCES] [-F ERROR_FORMAT] [-V VALIDATOR] schema
jsonschema: error: argument -i/--instance: invalid _json_file value: 'schemas/apparatus_example.json'
(env) Benjamins-MacBook-Pro-9:flow-chem BenjaminLee$ chardetect schemas/apparatus_example.json
schemas/apparatus_example.json: ascii with confidence 1.0
(env) Benjamins-MacBook-Pro-9:flow-chem BenjaminLee$ chardetect schemas/apparatus.schema.json
schemas/apparatus.schema.json: ascii with confidence 1.0
(env) Benjamins-MacBook-Pro-9:flow-chem BenjaminLee$ python3 -c "import locale; print(locale.getpreferredencoding())"
UTF-8

Metadata

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