Skip to content

Refactor json schema validator to return meaningful error messages

What does this MR do and why?

This code improves error messages when validating JSON schemas. Instead of a generic error message, it now provides more specific information about the error. For example, if a required property is missing, it will say "'[property name]' is required". If there are multiple options for a value and none is provided, it will list the required options. These improvements make it easier for users to understand and fix errors in their pipeline YAML.

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.

Related to #468218 (closed)

Merge request reports

Loading