Skip to content

Preserve validation errors for Unicode property paths - #274

Open
winklemad wants to merge 1 commit into
atlassian:mainfrom
winklemad:fix/unicode-instance-paths
Open

Preserve validation errors for Unicode property paths#274
winklemad wants to merge 1 commit into
atlassian:mainfrom
winklemad:fix/unicode-instance-paths

Conversation

@winklemad

Copy link
Copy Markdown

Summary

  • Preserve validation errors when AJV instancePath values contain Unicode property names.
  • Broaden makeTree path tokenization without decoding JSON Pointer tokens, so encoded ~0 and ~1 segments remain intact and numeric array-index grouping remains unchanged.
  • Add regressions at both the helper and public API levels, plus a patch changeset.

Testing

  • pnpm exec vitest run src/__tests__/helpers/make-tree.js src/__tests__/index.js -t 'preserves escaped and Unicode JSON pointer segments|should output errors for Unicode property paths' β€” passed (2 tests).
  • pnpm run test-ci -- --run β€” the new Unicode test and all makeTree tests passed; the full run reported 16 ANSI-color snapshot mismatches outside the new assertions in the local Node 22/no-color environment.
  • pnpm run lint β€” passed.
  • pnpm exec prettier --check src/helpers.js src/__tests__/helpers/make-tree.js src/__tests__/index.js .changeset/tidy-pointers-smile.md β€” passed.

@atlassian-cla-bot

atlassian-cla-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

Hooray! All contributors have signed the CLA.

@changeset-bot

changeset-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

πŸ¦‹ Changeset detected

Latest commit: a9a0519

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
better-ajv-errors Patch

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

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.

1 participant