huma
huma copied to clipboard
documenting array[T] instead of array[object]
type userArrayResponse struct {
Body struct {
Users []sql.User `json:"users"`
}
}
In the generated OpenAPI docs, UserArrayResponseBody schema shows an array[object] text which I would like it to say array[User]. Documented JSON is correct for User. I've looked for some time but was not able to get this, like trying to implement SchemeProvider etc.