Skip to content

Problem when combining @Schema with @JsonBackReference #390

Closed
@dohool

Description

@dohool

When designing a model with bidirectional relationships, i am using Jackson's @JsonBackReference annotation to specify the back part, which will be omitted from serialization.

Due to this, it should also be ignored in the openapi documentation.

But using @Schema(hidden = true) in combination with @JsonBackReference does not work. The @Schema(hidden = true) is ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions