Closed RedBoneZhang closed 3 years ago
when use anonymous nested structures at @param body,required stuct tag is invalid. struct define like follow:
type StructA struct { Name string `json:"name" required:"true"` } type StructB struct { StructA }
error: when use StructB in @param,required struct tag is not generated in swagger.json.
del.
when use anonymous nested structures at @param body,required stuct tag is invalid. struct define like follow:
error: when use StructB in @param,required struct tag is not generated in swagger.json.