beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.44k stars 920 forks source link

fix required struct tag when anonymous nested struct #775

Closed RedBoneZhang closed 3 years ago

RedBoneZhang commented 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.

flycash commented 3 years ago

Please fix the CI

RedBoneZhang commented 3 years ago

del.