admin管理员组文章数量:1333170
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?
本文标签: javaspringdoc generates wrong maxLength valueStack Overflow
版权声明:本文标题:java - springdoc generates wrong maxLength value - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742348595a2458028.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论