How to get huma.Context from context.Context #410
Unanswered
davidolrik
asked this question in
Q&A
Replies: 2 comments 5 replies
-
You can pass it via context from middleware, but it against huma design principle, so no builtin way to do this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@davidolrik what are you trying to accomplish using the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I create a handler using huma.Register the handler signature is
func(ctx context.Context, input *struct{}) (output *struct{}, error)
.How do I get the the huma.Context from that
ctx
?Beta Was this translation helpful? Give feedback.
All reactions