Repository navigation
feat: support x-pattern-message extension in Zod and Valibot validator plugins - #4117
Merged
Merged
Conversation
|
|
🦋 Changeset detectedLatest commit: 3ed3afb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mrlubos
force-pushed
the
pullfrog/4116-x-pattern-message
branch
from
June 21, 2026 20:37
4ebd3a4 to
3ed3afb
Compare
mrlubos
approved these changes
Jun 21, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4117 +/- ##
==========================================
- Coverage 37.02% 36.99% -0.03%
==========================================
Files 676 678 +2
Lines 23827 23843 +16
Branches 7143 7149 +6
==========================================
Hits 8821 8821
- Misses 12070 12084 +14
- Partials 2936 2938 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
@hey-api/codegen-core
@hey-api/json-schema-ref-parser
@hey-api/nuxt
@hey-api/openapi-python
@hey-api/openapi-ts
@hey-api/shared
@hey-api/spec-types
@hey-api/types
@hey-api/vite-plugin
commit: |
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4116
Adds support for the
x-pattern-messageOpenAPI extension in validator plugins. When a string schema has both apatternandx-pattern-message, the message is passed as the second argument to.regex()/v.regex()calls.Changes:
patternNode: readsx-pattern-messageand passes as second arg to.regex()patternNode: samepatternNode: same (via.check(z.regex(pattern, message)))patternNode: same (viav.regex(pattern, message))specs/3.0.x/validators.json: addedx-pattern-messageto an existing pattern-bearing schemaDeepSeek Pro(free via Pullfrog for OSS) | 𝕏