Closed
Description
Describe the bug
Schema definiton for Link
is a reference to itself, leading to StackOverflowError in openapi-generator-cli
versions
- spring-boot
2.2.6.RELEASE
springdoc-openapi-ui
andspringdoc-openapi-data-rest
both in version1.3.4
&springdoc-openapi-maven-plugin
version0.3
Minimal sample to reproduce
- clone https://github.com/ch4mpy/springdoc-openapi-609
- run
./mvnw install
- submit generated
dtos.json
(target
folder) to https://apitools.dev/swagger-parser/online/
Expected behavior
Schema Link
definition is as follow
"Link":{"$ref":"#/components/schemas/Link"}
It should be
"Link": {
"type": "object",
"properties": {
"href": {
"type": "string"
},
"hreflang": {
"type": "string"
},
"media": {
"type": "string"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
},
"deprecation": {
"type": "string"
},
"profile": {
"type": "string"
},
"name": {
"type": "string"
}
}
}