Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation error when param path is urlencoded #179

Open
tomasjanda opened this issue Oct 23, 2022 · 0 comments
Open

Validation error when param path is urlencoded #179

tomasjanda opened this issue Oct 23, 2022 · 0 comments

Comments

@tomasjanda
Copy link

Hello, i have problem with path param with urlencoded characters <>.
When i change implementation of this line to:

$parsedParams[$name] = urldecode($matches[$name]);

validation works fine. Without this change i got:

prev | Object League\OpenAPIValidation\Schema\Exception\KeywordMismatch
value | COMPONENT_%3COBJECT_JA100:73072%3E:27

params | {componentEntityId: COMPONENT_%3COBJECT_JA100:73072%3E:27, v1: v1}

League\OpenAPIValidation\Schema\Exception\KeywordMismatch
Keyword validation failed: Data does not match pattern '#^(SECTION|COMPONENT|ACTOR|USER)_<(OBJECT_(\w+):([\d]+))>:(\d+)$#u'
@tomasjanda tomasjanda changed the title Validation error when param path is uelencoded Validation error when param path is urlencoded Oct 23, 2022
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

No branches or pull requests

1 participant