1
0
mirror of https://github.com/beego/bee.git synced 2025-05-13 13:11:27 +00:00
bee/generate
RedBoneZhang 3f35efce96
fix required struct tag when anonymous nested struct
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.
2021-04-28 10:26:32 +08:00
..
2020-12-16 13:35:23 +08:00
2020-12-16 13:35:23 +08:00
2020-12-16 13:35:23 +08:00
2020-12-16 13:35:23 +08:00
2020-12-16 13:35:23 +08:00
2020-12-16 13:35:23 +08:00
2021-02-09 23:34:45 +08:00
2021-02-09 23:34:45 +08:00