Skip to content

Validate system parameters with a real JSON Schema validator #13

Description

@FelixTJDietrich

The runner now checks systems[].parameters against the descriptor-published parameters_schema at preflight, so a typo is a plan-time error rather than a crash inside the first attempt.

It uses a bounded recursive checker that reports only definite violations, covering $ref/$defs, type, enum, required, properties, items, anyOf/oneOf and additionalProperties: false. That is enough for every failure mode the adapters z.strictObject schemas can express, but it is not JSON Schema semantics.

ajv is already in the repository as a devDependency and is used in the conformance tests. Moving it to dependencies and swapping it in would give full Draft 2020-12 semantics at the cost of a production dependency. Worth doing deliberately rather than by accident.

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