stoplightio / elements

Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.
https://stoplight.io/open-source/elements/
Apache License 2.0
1.82k stars 206 forks source link

Add support for setting a cookie parameter along with the other types #2721

Open yvoitenko opened 1 month ago

yvoitenko commented 1 month ago

It is impossible to specify a "cookie" request parameter with "Try it" feature

Context

There seems to be no ability to specify the "cookie" parameter value for trying a sample request. Also, it doesn't appear in the "code samples" section at all. But it is present in the request general description.

Current Behavior

Currently, I can only set those, which are in "query", "path", "header" or request body

Expected Behavior

There's an ability to specify a "cookie" parameter with "Try it" feature, and it appears in the "code samples" section, like the other types and the request body.

image