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
Hi! I would like to suggest adding a new type alias for empty input/outputs. Right now, if a route does not accept any input and/or output, it should be defined as a pointer to an empty structure. In my project I have a separate type alias for this as it is more convenient and clearer, so I thought it might be nice to have it built-in (e.g. huma.Empty, huma.EmptyPayload).
If you think this can be helpful, I'd like to contribute.
The text was updated successfully, but these errors were encountered:
Hi! I would like to suggest adding a new type alias for empty input/outputs. Right now, if a route does not accept any input and/or output, it should be defined as a pointer to an empty structure. In my project I have a separate type alias for this as it is more convenient and clearer, so I thought it might be nice to have it built-in (e.g.
huma.Empty
,huma.EmptyPayload
).If you think this can be helpful, I'd like to contribute.
The text was updated successfully, but these errors were encountered: