Stas Afanasev
Stas Afanasev
Hi there! I want to ask about validating primitive types nested in an array. For example, I've got the following input: ```go type Input struct { Body struct { ID...
Hi there, I have the following types **main.go** ```go const ( NameTypeFoo NameType = "FOO" NameTypeBar NameType = "BAR" ) type ( NameType string UserCreateRequest struct { Name NameType `json:"name"...
Hey there! I've got the following types ```go var _ huma.SchemaTransformer = CustomHeader("") type CustomHeader string func (h CustomHeader) TransformSchema(r huma.Registry, s *huma.Schema) *huma.Schema { s.Type = "string" s.Description =...
Hi there! I've got the following types ```go var _ huma.ContentTypeFilter = &Response{} type Input struct { Body struct { Name string `json:"name" doc:"The name."` } } type Response struct...
Hi there, I have the following types: **main.go** ```go type Base struct { Name string `json:"name" doc:"The name to compare." minLength:"1" maxLength:"10"` Age int `json:"age" doc:"The age to compare." minimum:"0"...
Hey @danielgtaylor This PR proposes a solution for the issue #560. We tested this change internally, and it decreased the size of our generated OAS by ~22%. Conversely, this change...
Hi there, I have the following types **main.go** ```go var ( _ huma.SchemaTransformer = Key("") _ huma.SchemaTransformer = Value("") ) type ( Key string Value string ) func (k Key)...
Hi there! I have a question/feature request. I want to achieve the state where a single operation has multiple media types on request and response, and the exact type that's...