This repository was archived by the owner on Mar 16, 2025. It is now read-only.
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
References from Generics of mapped types are not counted #91
Closed
Description
When you configure a type mapping in openapi-mapping.yaml
using generics, the type reference is not counted and therefore the type will not be generated.
map:
types:
- type: MyResultPage => org.springframework.data.domain.Page<{package-name}.model.MyResult>
I see it would be hard to find such a reference, so either it should be possible to use OpenApi type names as generics:
map:
types:
- type: MyResultPage => org.springframework.data.domain.Page
generics:
- MyResult
or having an option to force generation of types to be configured:
force-types:
- MyResult
I don't know which would be the best solution (would prefer the openapi type in generics) but somehow this has to be fixed/possible.
I am using openapi-processor-maven-plugin
version 2021.1 with openapi-processor-spring
version 2022.2.