We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Starting from 2.8.7 we noticed a regression bug related to circular object references.
2.8.7
Given these kotlin classes
data class Account( val id: String, val subs: List<Subscriptions> ) data class Subscriptiong( val id: String. ) { var account: Account }
To Reproduce Steps to reproduce the behavior:
springdoc-openapi-starter-webmvc-ui
## ACTUAL { "Account": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "subscriptions": { "type": "array", "items": { "$ref": "#/components/schemas/Subscription" } } } }, "Subscription": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "account": { "required": [ ## there should be a reference to Account here "id" ] } } }
Expected behavior
## EXPECTED (as in v2.8.6) { "Account": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "subscriptions": { "type": "array", "items": { "$ref": "#/components/schemas/Subscription" } } }, }, "Subscription": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "account": { "$ref": "#/components/schemas/Account" } }, }, } }
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Starting from
2.8.7
we noticed a regression bug related to circular object references.Given these kotlin classes
To Reproduce
Steps to reproduce the behavior:
3.4.5
springdoc-openapi-starter-webmvc-ui
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: