Skip to content
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

Respect @JsonIdentityReference(alwaysAsId = true) #1432

Open
gmuellerinform opened this issue Apr 6, 2023 · 1 comment
Open

Respect @JsonIdentityReference(alwaysAsId = true) #1432

gmuellerinform opened this issue Apr 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gmuellerinform
Copy link

In our API only ids are send instead of objects, so we use @JsonIdentityReference(alwaysAsId = true).
See here: https://stackoverflow.com/questions/32692609/swagger-2-0-jackson-jsonidentityinfo-doesnt-work

It would be great if you could add this feature, so the generated OpenAPI matches the actual data.

@MikeEdgar MikeEdgar added the enhancement New feature or request label May 1, 2023
@Scisaga
Copy link

Scisaga commented Apr 23, 2024

workaround

@JsonIdentityReference(alwaysAsId = true)
@Schema(
    description = "...",
    type = SchemaType.STRING,
    implementation = String.class,
    example = "..."
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants