microsoft / typespec

https://typespec.io/
MIT License
4.49k stars 214 forks source link

Feature Request: Add parameter decorator `@cookie` to specify that is `in: cookie` #4739

Closed su8ru closed 1 week ago

su8ru commented 3 weeks ago

Clear and concise description of the problem

There is no way to decorate parameters in the cookie. So, add @cookie decorator like @header to decorate the parameter is in the cookie.

Checklist

markcowl commented 3 weeks ago
su8ru commented 3 weeks ago

@markcowl I think #4761 will include openapi3 support to fix type errors. If it seems that other libraries also need to be supported, I am thinking of removing the close keyword from #4761 and unlinking it to leave this issue, what do you think?