如何在不引入其他图层名称的情况下在Swagger中包含其他定义的所有字段?

时间:2019-05-15 19:08:51

标签: swagger swagger-2.0 openapi swagger-codegen openapi-generator

以这个为例:https://goswagger.io/use/spec/allOf.html

最终生成的type AllOfModel struct包含SimpleOnemods.Notable等作为其字段名称。它们充当了附加层。如何摆脱这些额外的指针? (我的意思是只包含SimpleOnemods.Notable中的所有字段?

0 个答案:

没有答案