Skip to content

Make the unknown keyword annotation test dialect-agnostic - #1229

Merged
jdesrosiers merged 1 commit into
json-schema-org:unifyfrom
jdesrosiers:fix/unknown-keyword-annotation
Oct 18, 2026
Merged

jdesrosiers merged 1 commit into
json-schema-org:unifyfrom
jdesrosiers:fix/unknown-keyword-annotation

Conversation

@jdesrosiers

Copy link
Copy Markdown
Member

The test case had a 2020-12 $schema, so it only applied to 2020-12. It now uses compatibility instead, so it also applies to 2019-09 and v1, where x- keywords are implicit annotation keywords.

The test case had a 2020-12 $schema, so it only applied to 2020-12. It
now uses compatibility instead, so it also applies to 2019-09 and v1,
where x- keywords are implicit annotation keywords.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jdesrosiers
jdesrosiers requested a review from a team as a code owner October 17, 2026 07:12
@jdesrosiers
jdesrosiers merged commit 13f1f41 into json-schema-org:unify Oct 18, 2026
3 checks passed
jdesrosiers pushed a commit that referenced this pull request Oct 31, 2026
* Limit the unknown keyword annotation test to 2020-12 and later

#1229 made the case apply to 2019-09, but unknown keywords only produce
annotations starting with 2020-12. In 2019-09 they SHOULD be ignored,
and the x- prefix as an implicit annotation keyword is new in v1.

Add a check that cases asserting an x- keyword annotation don't apply
to earlier dialects.

* Drop the annotation check from the validation suite checker
jdesrosiers added a commit that referenced this pull request Nov 4, 2026
The test case had a 2020-12 $schema, so it only applied to 2020-12. It
now uses compatibility instead, so it also applies to 2019-09 and v1,
where x- keywords are implicit annotation keywords.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
jdesrosiers pushed a commit that referenced this pull request Nov 4, 2026
* Limit the unknown keyword annotation test to 2020-12 and later

#1229 made the case apply to 2019-09, but unknown keywords only produce
annotations starting with 2020-12. In 2019-09 they SHOULD be ignored,
and the x- prefix as an implicit annotation keyword is new in v1.

Add a check that cases asserting an x- keyword annotation don't apply
to earlier dialects.

* Drop the annotation check from the validation suite checker
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