You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And allow the user to implement the field conversion.
Using the SchemaProvider interface it can be set the query param type, but the current implementation does not provide any interface for the conversion part.
The fallback is the TextUnmarshaler interface, but this interface is not enough because then will fail on the validation phase (always set the value as a string).
So my proposal is to add an interface that allow the user to implement this conversion.. something like
The idea is to have something like
And allow the user to implement the field conversion.
Using the SchemaProvider interface it can be set the query param type, but the current implementation does not provide any interface for the conversion part.
The fallback is the TextUnmarshaler interface, but this interface is not enough because then will fail on the validation phase (always set the value as a string).
So my proposal is to add an interface that allow the user to implement this conversion.. something like
the relevant code is on the huma.go file, starting at line 825.
The text was updated successfully, but these errors were encountered: