Skip to content

Conversation

@pleshakov
Copy link
Contributor

Fix field path in error message for HTTPRoute path validation

Bug was introduced in 52fab05

Before:

 [spec.rules[0].matches[0].path: Unsupported value: "RegularExpression": supported values: "PathPrefix", spec.rules[0].matches[0].path: Invalid value: "/$coffee": cannot contain $]

After

 [spec.rules[0].matches[0].path.type: Unsupported value: "RegularExpression": supported values: "PathPrefix", spec.rules[0].matches[0].path.value: Invalid value: "/$coffee": cannot contain $]

@pleshakov pleshakov requested a review from a team as a code owner April 21, 2023 16:56
@github-actions github-actions bot added the bug Something isn't working label Apr 21, 2023
@pleshakov pleshakov merged commit f36e8be into main Apr 21, 2023
@pleshakov pleshakov deleted the fix/field-path-in-error branch April 21, 2023 17:27
miledxz added a commit to miledxz/nginx-gateway-fabric that referenced this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants