Validation when registering operations #622
Answered
by
wolveix
alexanderilyin
asked this question in
Q&A
-
|
I noticed that if I use duplicated huma.Register(api, huma.Operation{
OperationID: "operation1",
Path: "/operation/one",
}, controllers.One)
huma.Register(api, huma.Operation{
OperationID: "operation1",
Path: "/operation/two",
}, controllers.Two)In my case it was Copy & Paste problem. I wonder what's the right place in the library to add implementation for checking that all |
Beta Was this translation helpful? Give feedback.
Answered by
wolveix
Feb 19, 2026
Replies: 1 comment
-
|
Hey @alexanderilyin! We recently added the requirement that operation IDs are unique, as what you experienced was a bug :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wolveix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @alexanderilyin! We recently added the requirement that operation IDs are unique, as what you experienced was a bug :)