Skip to content

How to attach @doc() to an @useAuth() Model? #3359

Answered by timotheeguerin
charlypoly asked this question in Q&A
Discussion options

You must be logged in to vote

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 { 
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@charlypoly
Comment options

Answer selected by charlypoly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants