Skip to content

Wrong schema mapping with inheritance #489

Closed
@rodrigoords

Description

@rodrigoords

Describe the bug
When project is using inheritance on controller with generic class, pringdoc-openpi can't map the child model correctly.

To Reproduce
Here is an example: springdoc-openapi-inheritance

Expected behavior

  • All models mapped correctly with all child fields at the Schema sections on the web page.

Additional context

Related with: #310

version:

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-ui</artifactId>
    <version>1.2.21</version>
</dependency>

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-security</artifactId>
    <version>1.2.21</version>
</dependency>

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-data-rest</artifactId>
    <version>1.2.21</version>
</dependency>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions