-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
Spring Data REST: force openapi schema export #2295
Labels
bug
Something isn't working
Comments
If you are reporting a bug, please help to speed up problem diagnosis by providing as much information as possible:
This ticket will be closed and can be reopened if the relevant information are provided. |
bnasslahsen
added
the
incomplete
incomplete description: Make sure you Provide a Minimal, Reproducible Example - with HelloController
label
Jul 16, 2023
clementdenis
added a commit
to clementdenis/springdoc-openapi
that referenced
this issue
Feb 15, 2024
clementdenis
added a commit
to clementdenis/springdoc-openapi
that referenced
this issue
Feb 15, 2024
clementdenis
added a commit
to clementdenis/springdoc-openapi
that referenced
this issue
Feb 15, 2024
clementdenis
added a commit
to clementdenis/springdoc-openapi
that referenced
this issue
Feb 15, 2024
@bnasslahsen I pushed #2511 to fix this. |
Thanks @clementdenis, |
bnasslahsen
added
bug
Something isn't working
and removed
incomplete
incomplete description: Make sure you Provide a Minimal, Reproducible Example - with HelloController
labels
Feb 15, 2024
Fixed by #2501 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When working with SDR, I need that the associated resources are expanded in the returned JSON. I have achieved this by adding @RestResource(exported = false) to the associated resource. For example:
So far so good, as I can read and write to the association without extra requests. The problem is that I use openapi-generator to create feign clients of the API, and in this case the Client entity is not exported in the openapi schema, so I need this workaround to get it exported:
I'd like to know if is there any way to get rid of this workaround. I made a test with an excerpt projection, but the schema also doesn't get exported. Adding @SchemaProperty also doesn't helps.
This is the current schema output:
The expected behavior is to have client and template to be treated as properties, so I can remove the additional "inline" getters.
Sorry to post this here, but I didn't figured this out by looking at documentation / source code / stackoverflow
Thanks in advance
The text was updated successfully, but these errors were encountered: