-
Notifications
You must be signed in to change notification settings - Fork 434
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
Support for named path parameters #1939
Comments
Hi Team Just a gentle reminder about this issue. I understand you're all busy, but I'm eagerly awaiting any updates. If there's any way I can assist or provide more information, please let me know. Looking forward to your response. |
We have the metadata section that could be reused to allow you add additional information (https://docs.spring.io/spring-cloud-contract/reference/project-features-contract/common-top-elements.html#contract-dsl-metadata). We could have the |
Describe the bug
I have a technical question regarding my usage of the Spring Cloud Contract and Spring Rest Docs projects. So far, everything has been functioning as anticipated. However, I'm now looking to generate snippets for path parameters, specifically for a path like
/movies/123
. When I attempt this, Spring Rest Docs raises an error: "Snippet Path parameters with the following names were not found in the request: [movieId]." This error makes sense because I haven't named the path parameter in the URL definition.My question is whether it's possible to provide such information within Spring Cloud Contract, which is written in Groovy?
Sample
Contract
Rest Docs
The text was updated successfully, but these errors were encountered: