Skip to content

Fix errors in CI JSON Schema

Paul Jolly requested to merge myitcv/gitlab:fix_json_schema into master

What does this MR do and why?

Fix errors in CI JSON Schema.

Spotted using 'cue import' to translate the JSON Schema to CUE (https://cuelang.org). Previously reported via https://cuelang.org/issue/1939.

'minLength' is a constraint that can only be used on strings:

https://json-schema.org/understanding-json-schema/reference/string#length

Arrays should be constrained with 'minItems':

https://json-schema.org/understanding-json-schema/reference/array#length

The removal of the stray 'additionalProperties' on the 'patternProperties' field object is also correct, on the basis an 'patternProperties' object is defined as being a map from field name pattern to type.

Signed-off-by: Paul Jolly paul@myitcv.io

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports