microsoft / typespec

https://typespec.io/
MIT License
3.85k stars 174 forks source link

OpenAPI emitter: `@extension` should also be applied to `securitySchemes` #3555

Closed mcchrish closed 16 hours ago

mcchrish commented 3 weeks ago

Clear and concise description of the problem

@extension("x-amazon-apigateway-authtype", "custom")
model MyAuth is ApiKeyAuth<ApiKeyLocation.header, "Authorization">;

Should emit to:

components:
  securitySchemes:
    MyAuth:
      type: apiKey
      in: header
      name: Authorization
      x-amazon-apigateway-authtype: custom

Checklist

markcowl commented 3 weeks ago

est: 5