You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update adds at least one successful HTTP `Response Object` to each `Responses Object`.
According to OAS 3.0.3 Spec:
> The default MAY be used as a default response object for all HTTP codes that are not covered individually by the specification.
>
> The `Responses Object` MUST contain at least one response code, and it SHOULD be the response for a successful operation call.
[Specification link](https://swagger.io/specification/v3/#:~:text=and%20it%20SHOULD%20be%20the%20response%20for%20a%20successful%20operation)
Providing at least one response for a successful operation is only a recommendation (SHOULD), but not returning a success response for these operations doesn't make sense from a practical point of view.
According to the current document, the `paths./pet/{petId}.delete` operation, for example, can only return an error, even if the operation was successful. The example server, however, returns a 200.
Fixesswagger-api#112
Delete pet operation returns
200
responseDelete pet operation returns
200
response, but the spec only describes a400
for invalid ID.Example:
Returns:
This is addressed in #109
Update pet with form returns a
200
response with a Pet objectThe Pet object returned by
updatePetWithForm
is not described in the spec.Example:
Response:
The text was updated successfully, but these errors were encountered: