Skip to content

Commit

Permalink
Bug #2845 typescript angular inheritance (#3812)
Browse files Browse the repository at this point in the history
* issue #2845: enable 'supportsMultipleInheritance' on typescript angular client codegen

- note I reran ./bin/openapi3/typescript-angular-petstore-all.sh and no changes occurred.
  this suggests to me that the petstore.yaml sample should be improved to make use of the
  anyOf / allOf / oneOf keywords, in order to better show the effects of changes on generated code.

* issue #2845: run ./bin/openapi3/typescript-angular-petstore-all.sh

* run `mvn clean package && ./bin/typescript-angular-petstore-all.sh`

* revert extranous files
  • Loading branch information
mnahkies authored and wing328 committed Sep 5, 2019
1 parent 6a4e928 commit c63cf7e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public TypeScriptAngularClientCodegen() {
super();
this.outputFolder = "generated-code/typescript-angular";

supportsMultipleInheritance = true;

embeddedTemplateDir = templateDir = "typescript-angular";
modelTemplateFiles.put("model.mustache", ".ts");
apiTemplateFiles.put("api.service.mustache", ".ts");
Expand Down

0 comments on commit c63cf7e

Please sign in to comment.