danielgtaylor / danielgtaylor/huma
Add `format: uuid` in the openapi spec generation for UUID strings
Open
- Dominant language
- Go
- Stars
- 4.4k
- Forks
- 285
- Avg merge
- 40m
- Merged PRs (30d)
- 1
Description
Hello!
Looks like `uuid` string validation is [supported in huma](https://github.com/danielgtaylor/huma/blob/badf024b0795f089518475622985ca899c98e41e/docs/docs/features/request-validation.md?plain=1#L146), however when the openapi spec is generated it is not mentioned as a validation requirement for the string with `format: uuid`. Heres the openapi spec for `uuid`: https://spec.openapis.org/registry/format/uuid.html
Can we fix openapi generation for string formats (uuid, and any others)?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.