Closed haraldatbmw closed 4 years ago
Hi @haraldatbmw,
Thank you for this report and I have created the internal ticket PAYARA-4074
for the engineering team to fix this issue.
Regards Rudy
+1
It might be that the title is somewhat misleading associating the problem with generics when it might be that we don't support inheritance in the way it is used or the simple fact that lists are treated like arrays would or recognised as such beyond the obvious types. Same might be true for map types. Just something to think about when working on this.
@rdebusscher Do you have any news on your internal ticket PAYARA-4074?
@haraldatbmw Development is not started yet.
Tracked now as CUSTCOM-30
Description
The OpenAPI parser (fish.payara.microprofile.openapi.impl.processor.ApplicationProcessor) does not support parsing request/response classes using generics. Therefor the generated OpenAPI document is not complete (see current vs. expected outcome below).
JSON response of http://localhost:8080/openapi-showcase/resources/zoo
Generated OpenAPI document
Expected Outcome
Steps to reproduce
Build and deploy the project https://github.com/haraldatbmw/openapi-showcase on the payara and open the URL http://localhost:8080/openapi
Hint
The smallrye-open-api implementation does the job correct.
Environment