OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Using version 7.00-beta, when you try to generate oneOf with discriminator property referencing to enum, then everything works fine, but once you add generate model suffix using modelNameSuffix, compilation is failing, because suffix is not added because parent model is using enum name without suffix.
Bug Report Checklist
Description
Using version 7.00-beta, when you try to generate oneOf with discriminator property referencing to enum, then everything works fine, but once you add generate model suffix using
modelNameSuffix
, compilation is failing, because suffix is not added because parent model is using enum name without suffix.openapi-generator version
7.0.0-beta
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
mvn clean install
Receive error:
[41,12] cannot find symbol [ERROR] symbol: class TransactionAssetsType [ERROR] location: interface com.steam.trading.api.transactions.dto.TransactionAssetsDto
Related issues/PRs
Feature was added by https://github.com/OpenAPITools/openapi-generator/issues/12412
Suggest a fix
Add logic to add suffix and prefix in templates when using enum discriminator