From 1f5de82fc7b7ee074439337a1e5aebec150a2ea0 Mon Sep 17 00:00:00 2001 From: Aramis Date: Wed, 17 Jan 2024 15:07:55 -0500 Subject: [PATCH] updating templates to be more in line with expected backstage types. Signed-off-by: Aramis --- .../typescript-backstage/licenseInfo.mustache | 13 ++++--------- .../typescript-backstage/modelOneOf.mustache | 10 +++++----- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/packages/repo-tools/templates/typescript-backstage/licenseInfo.mustache b/packages/repo-tools/templates/typescript-backstage/licenseInfo.mustache index db559aacf9..afc90f6227 100644 --- a/packages/repo-tools/templates/typescript-backstage/licenseInfo.mustache +++ b/packages/repo-tools/templates/typescript-backstage/licenseInfo.mustache @@ -1,12 +1,7 @@ +// /** - * {{{appName}}} - * {{{appDescription}}} - * - * {{#version}}The version of the OpenAPI document: {{{.}}}{{/version}} - * {{#infoEmail}}Contact: {{{.}}}{{/infoEmail}} - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * {{{appName}}}{{#version}}@{{{.}}}{{/version}} + * + * NOTE: This class is auto generated, do not edit the class manually. */ \ No newline at end of file diff --git a/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache b/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache index f6f30e029a..66085a7f71 100644 --- a/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache +++ b/packages/repo-tools/templates/typescript-backstage/modelOneOf.mustache @@ -6,9 +6,9 @@ import { } from './'; {{/hasImports}} -/** - * @type {{classname}}{{#description}} - * {{{.}}}{{/description}} - * @export - */ +{{#description}} + /** + * {{{.}}} + */ +{{/description}} export type {{classname}} = {{#oneOf}}{{{.}}}{{^-last}} | {{/-last}}{{/oneOf}};