You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 15:27:50