bee icon indicating copy to clipboard operation
bee copied to clipboard

fix required struct tag when anonymous nested struct

Open RedBoneZhang opened this issue 4 years ago • 0 comments
trafficstars

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.

fixed: #779

RedBoneZhang avatar Apr 28 '21 02:04 RedBoneZhang