-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Examples with Valid Request / Response Pairs #1742
Comments
Every Media Type Object in OAS v3.0.x supports the Could you see if this satisfies your requirement? |
I know - But my question is: how can i define a consistent [All Requests - All Responses] set? |
I'm not sure what you mean by either "consistent" or "all". Could you expand a little? |
@chatelao Correlating response bodies with request bodies within a single operation is a design smell. It encourages coupling between client and server based on out-of-band knowledge, which reduces the evolvability of a service. Responses should be self-descriptive. You shouldn't need to know what the request was to understand what the response means. The request should describe the intent of the client. Defining a contract that says exactly how a server must respond to a client's specific request is highly problematic. I know many people want to do it. I generally try and discourage people from doing it because that's not HTTP is supposed to work. |
Sounds like this was definitively answered in 2018, closing. |
I strongly disagree with the answer and the decision to close this request, and find the request still valid:
|
Goal:
Use
The text was updated successfully, but these errors were encountered: