java - springdoc generates wrong maxLength value - Stack Overflow

I have a problem with .springdoc:springdoc-openapi-ui:jar:1.6.0I have a schema definition with maxLeng

I have a problem with .springdoc:springdoc-openapi-ui:jar:1.6.0

I have a schema definition with maxLength: 255 in my OpenAPI descripition. When I start my app and view the generated docs, the maxLength value has changed to 2147483647

    ids:
      name: ids
      in: query
      description: 'uuid'
      required: true
      schema:
        type: array
        maximum: 0
        maxItems: 100
        items:
          type: string
          maxLength: 255

When i start my app and open link localhost:8082/swagger-ui.html, i have this schema with the wrong value:

          {
            "name": "ids",
            "in": "query",
            "required": true,
            "schema": {
              "maxItems": 100,
              "minItems": 0,
              "type": "array",
              "items": {
                "maxLength": 2147483647,
                "type": "string"
              }
            }
          }

How can I fix this problem?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742348597a4427051.html

相关推荐

  • java - springdoc generates wrong maxLength value - Stack Overflow

    I have a problem with .springdoc:springdoc-openapi-ui:jar:1.6.0I have a schema definition with maxLeng

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信