Implements SchemaTransformer interface, reusing parts of the schema from `ExampleInputStruct`
| 1606 | |
| 1607 | // Implements SchemaTransformer interface, reusing parts of the schema from `ExampleInputStruct` |
| 1608 | type ExampleUpdateStruct struct { |
| 1609 | Name *string `json:"name"` |
| 1610 | Email *string `json:"email" doc:"Override doc for email"` |
| 1611 | Age OmittableNullable[int] `json:"age"` |
| 1612 | Comment OmittableNullable[string] `json:"comment"` |
| 1613 | Pattern string `json:"pattern"` |
| 1614 | } |
| 1615 | |
| 1616 | func (u *ExampleUpdateStruct) TransformSchema(r huma.Registry, s *huma.Schema) *huma.Schema { |
| 1617 | inputSchema := r.Schema(reflect.TypeFor[*ExampleInputStruct](), false, "") |
nothing calls this directly
no outgoing calls
no test coverage detected