|
Hello, I want to use Huma to generate OpenAPI spec from Go types for my API responses. Some of these types are generated using other tools and therefore do not allow me to set the omitempty property to mark individual fields as optional. However, all types share that optional fields have a pointer type. |
Answered by
wolveix
Jun 14, 2026
Replies: 2 comments
|
Hi @juliarn! Please check our request "optional" tagging documentation: https://huma.rocks/features/request-validation/?h=optional#optional-required |
0 replies
Answer selected by
wolveix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @juliarn! Please check our request "optional" tagging documentation: https://huma.rocks/features/request-validation/?h=optional#optional-required