Skip to content

Does Draft 2020-12 JSON schema validation work #39

@coderextreme

Description

@coderextreme

Pardon, this is the first time I've tried schema validation with any JSON linter

$ jsonlint examples/abox.json --validate schemas/2020-12-JSONSchema.json schemas/x3d-4.0-JSONSchema.json
File: examples/abox.json
Loading the JSON Schema failed:
Compiling the JSON Schema failed.
strict mode: unknown keyword: "$dynamicAnchor"

This appears to be relevant:

$ grep dynamicAnchor schemas/*
schemas/2020-12-JSONSchema.json: "$dynamicAnchor": "meta",
schemas/2020-12-JSONSchema.json: "$comment": ""$recursiveAnchor" has been replaced by "$dynamicAnchor".",

Other incantations I've tried:

$ jsonlint examples/abox.json --validate https://json-schema.org/draft/2020-12/schema schemas/x3d-4.0-JSONSchema.json
File: examples/abox.json
Loading the JSON Schema #1 failed: "https://json-schema.org/draft/2020-12/schema".
ENOENT: no such file or directory, open 'C:\Users\jcarl\x3dvalidate\https:\json-schema.org\draft\2020-12\schema'

$ jsonlint schemas/x3d-4.0-JSONSchema.json --validate https://json-schema.org/draft/2020-12/schema
File: schemas/x3d-4.0-JSONSchema.json
Loading the JSON Schema #1 failed: "https://json-schema.org/draft/2020-12/schema".
ENOENT: no such file or directory, open 'C:\Users\jcarl\x3dvalidate\https:\json-schema.org\draft\2020-12\schema'

$ jsonlint schemas/x3d-4.0-JSONSchema.json --validate schemas/2020-12-JSONSchema.json
File: schemas/x3d-4.0-JSONSchema.json
Loading the JSON Schema failed:
Compiling the JSON Schema failed.
strict mode: unknown keyword: "$dynamicAnchor"

Any help or updates would be great!

John

x3d-4.0-JSONSchema.json

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