Skip to content

Conversation

erikdubbelboer
Copy link
Collaborator

No description provided.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds validation for URI schemes to ensure they conform to the standard format defined in RFC 3986. The validation is performed during URI parsing to prevent acceptance of malformed schemes.

  • Implements scheme validation according to RFC 3986 standards
  • Adds comprehensive test coverage for both valid and invalid schemes
  • Integrates validation into the existing URI parsing flow

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
uri.go Adds isValidScheme function and integrates scheme validation into the parse method
uri_test.go Adds test case to verify rejection of invalid schemes and acceptance of relative URIs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@erikdubbelboer erikdubbelboer merged commit d3fc682 into master Oct 5, 2025
7 checks passed
@erikdubbelboer erikdubbelboer deleted the scheme-validation branch October 9, 2025 04:16
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