huma icon indicating copy to clipboard operation
huma copied to clipboard

tag readOnly:"true" does not seem to work on object types

Open bshtmichielsen opened this issue 1 month ago • 2 comments

I have defined 2 structs, named Notice, and User. The Notice struct has a field of type User with json:"user" readOnly:"true" but it ends up in the Body for a post request anyway. Primitive fields, like string and int and such, with readOnly:"true" seem to exhibit the expected behaviour.

image

image

bshtmichielsen avatar May 29 '24 10:05 bshtmichielsen