Skip to content

node-config-schema.json has mistakes #61595

@ChALkeR

Description

@ChALkeR

With a schema validator which also validates the schema itself when compiling for all rules to be in non-conflict:
require('@exodus/schemasafe').validator(require('../../doc/node-config-schema.json'))

Same but also enforcing that every property is validated:
require('@exodus/schemasafe').validator(require('../../doc/node-config-schema.json'), { mode: 'strong' })

Even the first one fails

Example:

"items": {
"type": "string",
"minItems": 1
},
"type": "array"

minItems is not a property of type: 'string' schema, it should have been on type: 'array' level
It crashes strict validators and is silently ignored in loose validators otherwise.

There seems to be many instances of that

also perhaps add a validator to lint that

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions