Replies: 3 comments 1 reply
-
| This might be the appropriate way? paths:
  /foo:
    post:
      summary: Create a new foo
      responses:
        202:
          description: The foo has been received and will be processed within one minute
          content:
            text/plain:
              schema:
                type: string
                description: A job token to inquire about the status of the processing of the foo | 
Beta Was this translation helpful? Give feedback.
-
| Why not both? The  | 
Beta Was this translation helpful? Give feedback.
-
| Since @webron answered that it is indeed intended to describe both, I'm going to close this as resolved. | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It is currently unclear whether the
paths.<path>.<method>.responses.<status code>.descriptionfield describes the status code or the response body and if it's the status code where to describe the response body and vice versa.For example both of these seem to be reasonable definitions:
In the OpenAPI Guide on swagger.io the Describing Responses page uses
descriptionto describe the response body, except in the section "HTTP Status Codes" where it is used to give a reason for the status code. (Unless I'm missing something and those are actually differentdescriptionfields.)Beta Was this translation helpful? Give feedback.
All reactions