Skip to content

Test: add additional edge cases for uri format across active drafts - #850

Merged
jdesrosiers merged 1 commit into
json-schema-org:mainfrom
severe77:test/uri-edge-cases
Mar 16, 2026
Merged

jdesrosiers merged 1 commit into
json-schema-org:mainfrom
severe77:test/uri-edge-cases

Conversation

@severe77

@severe77 severe77 commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds additional boundary edge cases for the uri format across active drafts (draft3 through draft2020-12).

What’s included

The new cases focus on:

  • Invalid percent-encoding sequences (non-hex digits, incomplete triplets, lone %)
  • Invalid scheme syntax (non-letter start, disallowed characters)
  • Non-numeric port values

These cases align with the generic URI syntax defined in RFC 3986 (§2.1, §3.1, and §3.2.3).

Scope

  • Applied consistently to all active drafts that define format: "uri"
  • No existing tests were modified

@severe77
severe77 requested a review from a team as a code owner February 23, 2026 06:34
@severe77

Copy link
Copy Markdown
Contributor Author

@jdesrosiers @karenetheridge hey just a quick confirmation.
I applied these additions to draft3 through draft2020-12.
I left v1 unchanged since these cases relate to stricter RFC boundary behavior.

Would you prefer that similar cases also be added to v1 for consistency?

@jdesrosiers jdesrosiers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look like good additions. Please add them to v1 as well.

@severe77
severe77 force-pushed the test/uri-edge-cases branch from bcb06fb to af606fd Compare March 14, 2026 07:23
@severe77

Copy link
Copy Markdown
Contributor Author

@jdesrosiers I've resolved the conflicts and added the edge cases to v1. Please have a review when you have time, and let me know if any adjustments are needed.

@jdesrosiers
jdesrosiers merged commit 54ed4d1 into json-schema-org:main Mar 16, 2026
3 checks passed
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