microsoft / typespec

https://typespec.io/
MIT License
4.48k stars 211 forks source link

Add a generic mechanism to add extension to node that don't have a typespec type equivalent #3925

Open skywing918 opened 3 months ago

skywing918 commented 3 months ago

There is many nodes in the openapi document where you can add extension but they don't have a typespec type you can use @extension to. This include:

timotheeguerin commented 3 months ago

For parameters i don't think this is something we'll want to support as the goal was to provide some common params which is achieved directly in TypeSpec and duplicating those in each operation is equivalent.

For summary and description I also wonder what the usefulness of this is and feel like this is something that need user request to consider.

markcowl commented 3 months ago