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

Support priority in Restdocs generated contract #1818

Closed
huberchrigu opened this issue Sep 20, 2022 · 0 comments · Fixed by #1882 or #1883
Closed

Support priority in Restdocs generated contract #1818

huberchrigu opened this issue Sep 20, 2022 · 0 comments · Fixed by #1882 or #1883
Milestone

Comments

@huberchrigu
Copy link

Is your feature request related to a problem? Please describe.
I use Spring REST Docs to generate dslContract() snippets. I have multiple contracts with similar request parameters, so I need to specify the priority in order to fix my tests on consumer side.
I tried dslContract(mapOf("priority" to 1)), but it does not work.

Describe the solution you'd like
Either add an example in the documentation how to do it or extend the snippet with an optional priority attribute.

wwadge pushed a commit to wwadge/spring-cloud-contract that referenced this issue Apr 5, 2023
wwadge pushed a commit to wwadge/spring-cloud-contract that referenced this issue Apr 5, 2023
marcingrzejszczak pushed a commit that referenced this issue Apr 6, 2023
* Adds support to specify priority and make it possible to override the snippet template

Fixes gh-1818

* Adds support to specify priority and make it possible to override the snippet template

Fixes gh-1818

---------

Co-authored-by: Wallace Wadge <[email protected]>
@marcingrzejszczak marcingrzejszczak added this to the 4.0.3 milestone Apr 6, 2023
wwadge pushed a commit to wwadge/spring-cloud-contract that referenced this issue Apr 6, 2023
marcingrzejszczak pushed a commit that referenced this issue Apr 6, 2023
…field and a custom DSL template. (#1883)

Fixes gh-1818

Co-authored-by: Wallace Wadge <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants