8000 Add alias for empty input/output payload. · Issue #812 · danielgtaylor/huma · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add alias for empty input/output payload. #812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kvizyx opened this issue May 1, 2025 · 0 comments
Open

Add alias for empty input/output payload. #812

kvizyx opened this issue May 1, 2025 · 0 comments

Comments

@kvizyx
Copy link
kvizyx commented May 1, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0