How to attach @doc()
to an @useAuth()
Model
?
#3359
-
Hi 👋🏼 I've been trying to get the following {
"securitySchemes": {
"bearerAuth": {
"type": "apiKey",
"in": "header",
"name": "x-my-key",
"description": "A custom explanation on API Key"
}
}
} Adding a typespec/packages/http/src/decorators.ts Line 610 in 69d6cb7 However, I did not find how to properly apply the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you create a custom model for your authentication you can do that playground example import "@typespec/http";
using TypeSpec.Http;
/** Some custom doc */
model MyAuth is BasicAuth {
}
@service
@useAuth(MyAuth)
namespace DemoService {
} |
Beta Was this translation helpful? Give feedback.
If you create a custom model for your authentication you can do that playground example