Open mrkovalchuk opened 4 years ago
From above summary , what i have understood is that for "401" => "undocumented" string is showing which sounds inappropriate instead rename to "unauthorized" or an empty string would be suffice? right @mrkovalchuk
Can i take this issue?
/assign
Swagger/OpenAPI schema for endpoint:
Query:
curl -X POST "http://localhost:3000/api/something/" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"title\":\"string\",\"subtitle\":\"string\",\"slug\":\"string\",\"description\":\"string\",\"theme\":\"string\",\"picture\":\"string\",\"quiz_picture\":\"string\",\"complexity\":0}"
Good day.
Server generate schema with some endpoints with one, which schema little bit hight on text. On Screenshot#1 and on endpoint schema you can see defined response. For responses use {int}XX notation https://swagger.io/docs/specification/describing-responses/. I execute query to server. But schema mark response "Undocument".
In js code I found this (in operaion.jsx -> Operation):
Try to look in component on page
response from props:
In total: 4XX response defined, 401 response - Undocumented.
Expected behavior
401 response for 4XX is valid
Screenshots
Screenshot#1 Defined responses
Screenshot#2 Actual response
It's look like a bug. Sorry if not.