-
Notifications
You must be signed in to change notification settings - Fork 103
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
How to control the name of the schema? #78
Comments
Sounds like a reasonable requirement. Currently we aggregate equal schemas. So it is not necessarily the case that each operation results in a set of schemas. So I am really not sure where to put such a function. But if you have an idea, feel free to give it a try. |
It could be additional arguments in |
I'm looking for such a functionality as well. Some keypoints which come into mind:
Maybe we can find an approach which allows the extension of schema details in the future: |
Thanks for your interest in this feature @thowimmer.
We need to keep the statement above in mind. This surely complicates things a little. But generally I see two options: Make the schema name an additional parameter that you can pass in your test Implement plugable naming strategies |
Many thanks for your proposed options. I will try to come up with a PR where we can discuss this in more detail in the next few weeks :-) |
PR #116 deals with this issue. |
closed with #126 |
Is there any option to enforce the name of the schema in the generated contract?
Currently the name is generated from the URL of the service and hash code of the schema content.
restdocs-api-spec/restdocs-api-spec-openapi3-generator/src/main/kotlin/com/epages/restdocs/apispec/openapi3/OpenApi3Generator.kt
Line 150 in fd7e3ba
It would be great to have a control of the name of the schema for the request and response.
The text was updated successfully, but these errors were encountered: