From 0d74e626011f6eaf0c1bc6b698d0377989e27ef9 Mon Sep 17 00:00:00 2001 From: HugoMario Date: Thu, 2 Jan 2020 08:29:36 -0500 Subject: [PATCH] import models only when they exist --- .../src/main/resources/typescript-angular/index.mustache | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/swagger-codegen/src/main/resources/typescript-angular/index.mustache b/modules/swagger-codegen/src/main/resources/typescript-angular/index.mustache index c312b70fa3e..d4b4725af87 100644 --- a/modules/swagger-codegen/src/main/resources/typescript-angular/index.mustache +++ b/modules/swagger-codegen/src/main/resources/typescript-angular/index.mustache @@ -1,5 +1,9 @@ export * from './api/api'; +{{#models}} +{{#-first}} export * from './model/models'; +{{/-first}} +{{/models}} export * from './variables'; export * from './configuration'; export * from './api.module'; \ No newline at end of file