-
-
Notifications
You must be signed in to change notification settings - Fork 528
Spring Data Rest: Wrong response schema for collection relations #1069
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
Labels
bug
Something isn't working
Comments
Thank you for your clear description @mathias-ewald. |
This was referenced Mar 8, 2021
This was referenced Mar 16, 2021
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Schema for collection relations are wrongly detected. In the example of a
Doctor
entity holding a relation to a set ofClinics
the api-doc returnsRepresentationModelDoctor
for/doctors/{id}/clinics
instead of a collection model holdingClinic
s.To Reproduce
Doctor Entity
Clinic Entity
Doctor repository:
Clinic Repository:
Generated api-doc for access to the relation:
Expected behavior
The response schema should be generated as a
CollectionModel
of theClinic
type.The text was updated successfully, but these errors were encountered: