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

Wrong schema mapping with inheritance #489

Closed
rodrigoords opened this issue Mar 14, 2020 · 3 comments
Closed

Wrong schema mapping with inheritance #489

rodrigoords opened this issue Mar 14, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@rodrigoords
Copy link

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>
@bnasslahsen
Copy link
Contributor

@rodrigoords,

You can test with the next release v1.2.34.
Some enhancements will be added to improve support of inheritance/generics.

@rodrigoords
Copy link
Author

Checked with version 1.3.0 it's solved.

@bnasslahsen
Copy link
Contributor

Thank you @rodrigoords for your feedback

@bnasslahsen bnasslahsen added the bug Something isn't working label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants