Open tonireloaded opened 1 year ago
Hi,
I tried to generate models on different folder with: "openapi-generator-cli generate -i src/api/pokeapi.yaml -g typescript-axios -o src/api --model-package models" or "openapi-generator-cli generate -i src/api/pokeapi.yaml -g typescript-axios -o src/api --additional-properties='modelPackage=models'"
I want that models would be created on folder src/api/models, but this file structure was created:
Is this possible with any command parameter ?
You need to setup the modelPackage and apiPackage along with the withSeparateModelsAndApi:true. https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/typescript-axios.md
withSeparateModelsAndApi:true
Hi,
I tried to generate models on different folder with: "openapi-generator-cli generate -i src/api/pokeapi.yaml -g typescript-axios -o src/api --model-package models" or "openapi-generator-cli generate -i src/api/pokeapi.yaml -g typescript-axios -o src/api --additional-properties='modelPackage=models'"
I want that models would be created on folder src/api/models, but this file structure was created:
Is this possible with any command parameter ?