Skip to content

Conversation

@fundon
Copy link
Member

@fundon fundon commented Dec 7, 2025

No description provided.

Copy link
Contributor

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 pull request fixes an issue where required parameters (:param) were incorrectly matching empty values when followed by a path separator. The fix ensures that required parameters must contain at least one character.

Key Changes

  • Added validation in src/node.rs to reject empty values for Kind::Normal parameters
  • Added comprehensive test coverage in tests/issues.rs to verify the fix handles various edge cases
  • Enhanced documentation for the Kind enum in src/parser.rs to clarify parameter matching behavior

Reviewed changes

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

File Description
tests/issues.rs New regression test (test_44) validating that required parameters reject empty values while optional parameters accept them
src/parser.rs Added documentation explaining the purpose and behavior of path segment types
src/node.rs Added early-return check to prevent Kind::Normal parameters from matching when followed immediately by / (indicating an empty parameter value)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fundon and others added 4 commits December 8, 2025 06:36
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fundon fundon merged commit b427504 into main Dec 12, 2025
12 checks passed
@fundon fundon deleted the fix-issue-44 branch December 12, 2025 02:30
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