OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
I use annotations in a Spring application that are used to parameterize the objects used.
I have an abstract super class from which other objects inherit. I would like the response from the method generated using the generator to be of the appropriate type based on the defined parameter type.
The python code generates without errors and the vast majority of classes work flawlessly. However, we have a problem with class inheritance. I have already tried many ways, but nothing brought the expected result.
Do you have any idea what's wrong?
Bug Report Checklist
used library: openapi-generator-cli-7.4.0
Description
I use annotations in a Spring application that are used to parameterize the objects used. I have an abstract super class from which other objects inherit. I would like the response from the method generated using the generator to be of the appropriate type based on the defined parameter type.
Here are some sample json file fragments which has been generated by swagger:
Endpoint from spring controller
Shouldn't this json file also contain the following fragment: "type": "array" under "schema" ?
After running the method written in Python, instead of the response in json format, I get the following information:
The python code generates without errors and the vast majority of classes work flawlessly. However, we have a problem with class inheritance. I have already tried many ways, but nothing brought the expected result. Do you have any idea what's wrong?