Skip to content

Test relative JSON Pointer index manipulation - #1032

Draft
dev-willbird1936 wants to merge 1 commit into
json-schema-org:mainfrom
dev-willbird1936:agent/relative-json-pointer-index-manipulation
Draft

Test relative JSON Pointer index manipulation#1032
dev-willbird1936 wants to merge 1 commit into
json-schema-org:mainfrom
dev-willbird1936:agent/relative-json-pointer-index-manipulation

Conversation

@dev-willbird1936

Copy link
Copy Markdown

Summary

  • add valid Relative JSON Pointer format cases for forward, backward, and zero index manipulation;
  • add malformed index-manipulation controls; and
  • cover both Draft 2020-12 and the future v1 draft while leaving older drafts unchanged.

Why

Draft 2020-12 added the optional +N / -N index-manipulation production, but the shared format suite did not exercise it. These cases provide implementation-neutral coverage and are a prerequisite for python-jsonschema/jsonschema#1534.

Specification: https://json-schema.org/draft/2020-12/relative-json-pointer

Validation

  • python -m json.tool for both changed files
  • python bin/jsonschema_suite check — 11 checks passed, 4 skipped
  • git diff --check

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.

2 participants