huma icon indicating copy to clipboard operation
huma copied to clipboard

documenting array[T] instead of array[object]

Open repelliuss opened this issue 6 months ago • 0 comments

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.

repelliuss avatar Jul 26 '25 00:07 repelliuss