Skip to content

Allow apostrophe in uri-template literal - #1275

Open
dngr2 wants to merge 1 commit into
networknt:masterfrom
dngr2:uri-template-allow-apostrophe
Open

Allow apostrophe in uri-template literal#1275
dngr2 wants to merge 1 commit into
networknt:masterfrom
dngr2:uri-template-allow-apostrophe

Conversation

@dngr2

@dngr2 dngr2 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The uri-template format rejects an apostrophe in a literal:

"a'b"   // reported invalid — should be valid

The regex's excluded character class lists '. An apostrophe in a literal is valid (JSON-Schema-Test-Suite uri-template.json: "an apostrophe in a literal is valid"; the reference validator agrees). Removed ' from the exclusion set. Full suite stays green; added a test.

The uri-template format regex listed ' in its excluded character set, so
"a'b" was reported invalid. An apostrophe in a literal is valid; remove it
from the exclusion set.
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