OpenApi allows to define cookies in request parameters. But for response all I could find is either custom headers (signal general presence of Set-Cookie, but no clue about particular cookie) or rolling custom extension (which is also very limiting, eg. lacks type and description
).
How to define response cookies?
The OAS does not mention anything special for cookies in responses.
The swagger docs are providing an example how to define the cookies for authentication. But it is generally usable for all kind of cookies.