Skip to content

Issue: schema definitions not compliant with json-schema #511

@bartolomej

Description

@bartolomej

Description

The schemas provided in this repo store reusable definitions in the definitions field:

"definitions": {
"iso8601": {
"type": "string",
"description": "Similar to the standard date type, but each section after the year is optional. e.g. 2014-06-29 or 2023-04",
"pattern": "^([1-2][0-9]{3}-[0-1][0-9]-[0-3][0-9]|[1-2][0-9]{3}-[0-1][0-9]|[1-2][0-9]{3})$"
}
},

The official standard specifies $defs field instead, so the format used isn't compatible with that, which breaks usage with json schema compatible tooling: https://json-schema.org/understanding-json-schema/structuring#defs

Solution

Rename "definitions" to "$defs" and update references.

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