Skip to content

Validtion error in someone's schema; am I checking correctly? #24

@martinellison

Description

@martinellison

I'm getting a validation error on what claims to be JTD schema. Is there a new edition of the schema with some additional fields? Or something?:

Error: unknown field `$id`, expected one of `metadata`, `definitions`, `nullable`, `ref`, `type`, `enum`, `elements`, `properties`, `optionalProperties`, `additionalProperties`, `values`, `discriminator`, `mapping`

I have raised the issue with the authors of the 'schema' at rsek/datasworn#77 See that repo for more details of what they are trying to do. The schema is at datasworn/datassworn.schema.json in that repo, for your information. The project seems to be rather moribund, so I am asking here for extra information.

I am using the Rust version of the validator; is that obsolete?

edit: I get the same error using jtd-validate, so I guess this is not your error.

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