Skip to content

Maintain and print source mapping with schema validation warnings #1606

@ubmarco

Description

@ubmarco

Currently the schema validation warnings look like this:

  ERROR: Need 'IMPL_1' has schema violations:
    Severity:       violation
    Field:          start_date
    Need path:      IMPL_1
    Schema path:    options > schema > properties > start_date > format
    Schema message: "not-a-date" is not a "date" [sn_schema_violation.option_fail]

The internal data structure should store a source mapped information and emit it with each warning.
This also needs to be part of the schema_violations.json file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E4Low efforts (2-3 days)P3Medium priorityenhancement

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions