Closed ipfans closed 3 years ago
I'm not sure I understood your issue. Could you please produce a reproductible example of what's your trying to achieve please ?
Alternatively, you could check-out the examples. The FruitIdentityParams
input has a field binded to a Header.
Btw,
Authorization string `header:"Authorization" description:"token" example:"Bear xxxxxxxx"`
this field should probably not be part of that input struct, but rather handled by an authentication middleware upstream.
Because fizz not support OpenAPI security
There is an open PR #50 about that.
@wI2L oh I see, thanks a lot. Waiting for this pr to merge.
Hi, I try to use fizz to work with tonic, but I found HeaderTag not working for input struct. Because fizz not support OpenAPI security, so I tried to use header tag to some goal.
For example:
The result become to :