Repository navigation
fix(ajv): preserve escaped field names in validation errors - #879
Merged
jorisre merged 1 commit intoOct 17, 2026
Merged
Conversation
bluebill1049
approved these changes
Oct 16, 2026
jorisre
approved these changes
Oct 17, 2026
Contributor
|
馃帀 This PR is included in version 5.9.2 馃帀 The release is available on: Your semantic-release bot 馃摝馃殌 |
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.
Proposed Changes
AJV resolver errors for fields containing
/or~are returned under encoded or incorrectly nested names. React Hook Form cannot associate those errors with the registered field or its ref.Decode each JSON Pointer token before constructing the RHF path. Keep a required property's already-decoded name as a single segment so it is neither split at
/nor decoded twice.Reproduction on 5.9.1:
Before:
['a~1b']. After:['a/b']. A missing requireda/balso stays under that field instead of becomingerrors.a.b.A frozen install currently fails on unchanged master because
package.jsonrequires ATA validator^1.23.0whilebun.lockrecords^1.2.0. The manifest and lockfile are unchanged by this PR.