Skip to content

v3.2: fix regex for openapi version - #5529

Merged
karenetheridge merged 1 commit into
OAI:v3.2-devfrom
karenetheridge:ether/v3.2-openapi-version
Aug 31, 2026
Merged

v3.2: fix regex for openapi version#5529
karenetheridge merged 1 commit into
OAI:v3.2-devfrom
karenetheridge:ether/v3.2-openapi-version

Conversation

@karenetheridge

Copy link
Copy Markdown
Member

The "pattern" keyword is defined as following unicode semantics, where \d will match digits outside of the ascii range. But this is not likely to be treated as a valid version, so we must restrict to ascii digits.

  • schema changes are included in this pull request

The "pattern" keyword is defined as following unicode semantics, where \d will
match digits outside of the ascii range. But this is not likely to be treated
as a valid version, so we must restrict to ascii digits.
@karenetheridge
karenetheridge requested review from a team as code owners August 30, 2026 22:23

@mikekistler mikekistler left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. 👍

Had to think about this one a little bit, but since OpenAPI uses semver and semver only allows ASCII digits in the patch version (according to its ABNF), I think this is a proper change.

@karenetheridge
karenetheridge merged commit 38886ca into OAI:v3.2-dev Aug 31, 2026
3 checks passed
@karenetheridge
karenetheridge deleted the ether/v3.2-openapi-version branch August 31, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants