danielgtaylor / danielgtaylor/huma

Add alias for empty input/output payload.

Open
#812 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Go
Stars
4.4k
Forks
285
Avg merge
40m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.