diff --git a/packages/repo-tools/templates/typescript-backstage/model.mustache b/packages/repo-tools/templates/typescript-backstage/model.mustache index 77f186dd5f..97d7858cb2 100644 --- a/packages/repo-tools/templates/typescript-backstage/model.mustache +++ b/packages/repo-tools/templates/typescript-backstage/model.mustache @@ -1,3 +1,4 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/model.mustache#L17. }} {{>licenseInfo}} {{#models}} {{#model}} diff --git a/packages/repo-tools/templates/typescript-backstage/modelAlias.mustache b/packages/repo-tools/templates/typescript-backstage/modelAlias.mustache index c1c6bf7a5d..351dc37c78 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelAlias.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelAlias.mustache @@ -1 +1,3 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/modelAlias.mustache }} + export type {{classname}} = {{dataType}}; \ No newline at end of file diff --git a/packages/repo-tools/templates/typescript-backstage/modelEnum.mustache b/packages/repo-tools/templates/typescript-backstage/modelEnum.mustache index 7a7d2299e1..0deab70f02 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelEnum.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelEnum.mustache @@ -1,3 +1,5 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/modelEnum.mustache }} + {{#stringEnums}} export enum {{classname}} { {{#allowableValues}} diff --git a/packages/repo-tools/templates/typescript-backstage/modelGeneric.mustache b/packages/repo-tools/templates/typescript-backstage/modelGeneric.mustache index ce42680532..d51eeaed80 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelGeneric.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelGeneric.mustache @@ -1,3 +1,5 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/modelGeneric.mustache }} + {{#models}} {{#model}} diff --git a/packages/repo-tools/templates/typescript-backstage/modelGenericAdditionalProperties.mustache b/packages/repo-tools/templates/typescript-backstage/modelGenericAdditionalProperties.mustache index e6499ce9d6..b8d7d1ceb7 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelGenericAdditionalProperties.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelGenericAdditionalProperties.mustache @@ -1,3 +1,5 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/modelGenericAdditionalProperties.mustache }} + {{#additionalPropertiesType}} [key: string]: {{{additionalPropertiesType}}}{{#hasVars}} | any{{/hasVars}}; diff --git a/packages/repo-tools/templates/typescript-backstage/modelGenericEnums.mustache b/packages/repo-tools/templates/typescript-backstage/modelGenericEnums.mustache index a824e55ec5..8d7b49c9c3 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelGenericEnums.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelGenericEnums.mustache @@ -1,3 +1,5 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/modelGenericEnums.mustache }} + {{#hasEnums}} {{^stringEnums}} diff --git a/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache b/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache index 66085a7f71..b261789c3d 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache @@ -1,3 +1,5 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/modelOneOf.mustache }} + {{#hasImports}} import { {{#imports}} diff --git a/packages/repo-tools/templates/typescript-backstage/modelTaggedUnion.mustache b/packages/repo-tools/templates/typescript-backstage/modelTaggedUnion.mustache index 24a9c0f0b6..a3f5e00904 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelTaggedUnion.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelTaggedUnion.mustache @@ -1,3 +1,5 @@ +{{! Sourced from https://github.com/OpenAPITools/openapi-generator/blob/7347daec61b2cb8d3d28e1ed06fe8b5e682090f8/modules/openapi-generator/src/main/resources/typescript-angular/modelTaggedUnion.mustache }} + {{#discriminator}} export type {{classname}} = {{#children}}{{^-first}} | {{/-first}}{{classname}}{{/children}}; {{/discriminator}}