Browse Source

Merge pull request #779 from RedBoneZhang/Branch_master

fix required struct tag when anonymous nested struct
master
Ming Deng 3 months ago
committed by GitHub
parent
commit
457c2f7dc8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      generate/swaggergen/g_docs.go

1
generate/swaggergen/g_docs.go

@ -1212,6 +1212,7 @@ func parseStruct(st *ast.StructType, k string, m *swagger.Schema, realTypes *[]s
for name, p := range nm.Properties {
m.Properties[name] = p
}
m.Required = append(m.Required, nm.Required...)
continue
}
}

Loading…
Cancel
Save