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
---
openapi: 3.0.2info:
title: API for role testdescription: API for role testversion: 0.1.0paths:
/tasks/test:
post:
requestBody:
description: Using requestbody allows swagger ui to display the details of required parametersrequired: truecontent:
application/json:
schema:
type: arrayitems:
type: objectproperties:
id:
type: numbername:
type: stringstate:
type: stringenum: [enum1, enum2, enum3]responses:
'201':
description: Createdget:
description: Using header, path, query or cookie to render the details of required parameters is not supported by swagger ui yetparameters:
- in: header # Do not touch this var, pleasename: param01schema:
type: arrayitems:
type: objectproperties:
id:
type: numbername:
type: stringstate:
type: stringenum: [enum1, enum2, enum3]required: trueresponses:
'200':
description: "ok"'500':
description: "error"
Content & configuration
Swagger/OpenAPI definition:
Test on https://editor.swagger.io/
Is your feature request related to a problem?
Header, path, query and cookie parameters do not render the details of the arguments.
Describe the solution you'd like
Render the arguments object details the same way as in a requestbody
Additional context
Redoc always previews details of objects, that's nice! Let's have that also for swagger ui rendering.
The text was updated successfully, but these errors were encountered: