Open agilob opened 4 years ago
@agilob would you like to fix this?
I tried for a short moment, thought it would quick and simple fix, but I failed on it. It's not bugging me any more as typescript-angular generates correct models, so simply I moved to typescript-angular generator.
any update on this? the typescript generator can't be used if only model generation is required
@Or-Zarchi-Forter you are welcome to implement a fix. As a workaround, you can also post-process the generated files and remove those imports
Using 5.0.0.beta2 when generating code with
--global-properties model
all models contain importimport { HttpFile } from '../http/http';
to file which doesn't exist because api service aren't generated.When api service are generated, import in models isn't used when model doesn't handle fileUpload.
npx @openapitools/openapi-generator-cli generate -i src/main/resources/swagger/api.yml -g typescript -o src/main/webapp/app/models --global-property models --additional-properties=stringEnums=true -c openapitools.json