-
-
Notifications
You must be signed in to change notification settings - Fork 553
Closed
Labels
bugSomething isn't workingSomething isn't working
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-uiandspringdoc-openapi-data-restboth in version1.3.4&springdoc-openapi-maven-pluginversion0.3
Minimal sample to reproduce
- clone https://github.com/ch4mpy/springdoc-openapi-609
- run
./mvnw install - submit generated
dtos.json(targetfolder) 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"
}
}
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working