Open albertotn opened 2 years ago
Have you tried to use additionalProperty: withSeparateModelsAndApi
?
Using withSeparateModelsAndApi
lead to the generator failure.
I found the solution, the apiPackage
and modelPackage
params must be defined together with the withSeparateModelsAndApi
,
like:
{ "withSeparateModelsAndApi": true, "apiPackage": "apis", "modelPackage": "models" }
Bug Report Checklist
Description
Using axios typescript generator model defined in openApi are created in the same file as interfaces
openapi-generator version
5.3.0
OpenAPI declaration file content or url
see https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v2.0/yaml/petstore.yaml
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Like java spring generator, each model should be in a separated file ( as future reference for search split / splitted / multiple )