使用openapi-generator Gradle插件v6.2.1生成Spring代码时出现“Ignoring complex example on request body”提示的原因排查求助
openapi-generator Gradle插件v6.2.1生成Spring代码时出现“Ignoring complex example on request body”提示的原因排查求助
大家好,我目前在使用org.openapi.generator Gradle插件(版本6.2.1),从我的openapi.yml文件生成Spring项目代码时,总会弹出一条提示:Ignoring complex example on request body。我实在搞不清楚这是哪里出问题了,有没有朋友能帮忙分析下原因?
下面是我的openapi.yml文件中的相关片段:
paths: "/test": post: summary: ... tags: - ... requestBody: content: application/json: schema: type: array items: $ref: ... examples: example1: value: [ { ... } ]
我已经尝试找解决方案,但一直没头绪,麻烦大家帮忙看看,谢谢了!
备注:内容来源于stack exchange,提问作者menecol914
相关产品推荐
相关产品推荐

