-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Labels
info: workaround availableA workaround is available for the issueA workaround is available for the issuetype: bugSomething isn't workingSomething isn't working
Description
I have created a simple setup reproducing the where we have a class a that implements an interface A , having a field that has type A .
Steps to Reproduce
- Clone supplied repo
- run gradle assemble
- notice missing fields in type TestImpl1 in generated file at build/classes/java/main/META-INF/swagger/hello-world-0.0.yml
Expected Behaviour
The field name woopsie should be in the TestImpl1 type with type: $ref: '#/components/schemas/TestImpl1'
Actual Behaviour
The field woopsie is missing entirely. This is also the case for lists of same type.
For some reason adding a generic type to the interface, like so: TestInterface<T> resolves the issue.
Environment Information
- Operating System: Linux Mint 20 Cinnamon
- Micronaut Version: 2.2.1
- JDK Version: openjdk 14.0.2 2020-07-14
Example Application
Metadata
Metadata
Assignees
Labels
info: workaround availableA workaround is available for the issueA workaround is available for the issuetype: bugSomething isn't workingSomething isn't working