New issue
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
SpringDataRest with multiple DTO-s #3082
Comments
Hi, @csegedicsaba. That issue is related to #3014. |
It is under work and will be fixed to beginning of September. |
Any news about this issue? |
plop!! |
Here is the PR #3247 to fix this issue. |
Thx @MaksimOrlov! |
PR with fixes has been merged. And I'll be grateful for your feedback, if the issue was gone. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 3.0.0-SNAPSHOT
Generating swagger document from SpringDataRest, multiple DTO is generated in contract.
In https://github.com/csegedicsaba/springfox-poc project we have Person and City entities.
The contract (getting from http://localhost:8080/v2/api-docs) contains Person, Person_1 and Person_2.
The generated contract is different sometimes when I restart the application (no change, only restart). In springfox-poc_api-docs_v1.json.txt Person_1 and Person_2 is generated and used. But in springfox-poc_api-docs_v2.json.txt Person_2 is generated but not used.
By adding the opposite relation to City only the Person is generated (no Person_1 or Person_2).
We don't want to add always both side of relationship because it is unnecessary.
springfox-poc_api-docs_v1.json.txt
springfox-poc_api-docs_v2.json.txt
The text was updated successfully, but these errors were encountered: