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

Library doesn't support path parameters #41

Open
colinodell opened this issue Sep 23, 2022 · 1 comment
Open

Library doesn't support path parameters #41

colinodell opened this issue Sep 23, 2022 · 1 comment

Comments

@colinodell
Copy link

OpenApiSpecificationLoader::findPath() fails to match specification paths using path parameters like /users/{username} to actual request paths like /users/bob. It seems to be looking for a path literally named /users/{username} instead of realizing that {username} may contain any value.

@MattyRad
Copy link

MattyRad commented Nov 8, 2022

Yes, I ran into this as well. The quick fix was just to use the placeholder path as the function argument.

Not ideal, but personally I'm ok with it, as I'm guessing that it may take quite a bit of extra code (and mental energy) to parse and regex match the path.

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

2 participants