Skip to content

Property Validation: pattern #21

@everettraven

Description

@everettraven

The pattern constraint on a property puts a restriction on the value of a property based on a regular expression.

It is non-trivial to determine whether or not a change to a regular expression is more/less restrictive via code, but generally we should at the very least flag changes to the pattern constraint so that a human-in-the-loop can evaluate and determine whether or not the change is safe to make.

More nuanced:

  • Adding a pattern when one did not previously exist is a breaking change.
  • Changing a pattern could be a breaking change.
  • Removing a pattern is less restrictive and likely an OK change to make.

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions