huma
huma copied to clipboard
Support multiple request input sources
When a field has multiple request inputs sources, e.g. path and json, the library will throw an error.
As an example, when you have a field like User string `json:"user" path:"user"` , and you want to use it in 2 ways: in GET handler when user exists in URI as path param, and in POST handler when user is sent using JSON body. Struct with fields like this will result in error Parameter 'user' not in URI path.
I can implement this, but let me know if this fits in the library.