Skip to content

Can't disable backward incompatibility for a pattern change #845

@jdesrochers-atpco

Description

@jdesrochers-atpco

When changing the regexp pattern of an existing property, there are no overrides available to explicitly skip the verification on pattern change.

Example:

previous schema

    Widget:
      type: object
      properties:
        prop1:
          type: string

updated schema

    Widget:
      type: object
      properties:
        prop1:
          type: string
          pattern: '[A-Za-z0-9#$]$'

Gives an Schema: Broken compatibility error.

This issue is to add a new config property (something like incompatible.schema.pattern.changed) so we can disabled the pattern change rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions