diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache index ebe734cefb2..eac42428ede 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache @@ -8,6 +8,14 @@ export interface {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{ [key: string]: {{{additionalPropertiesType}}}{{#hasVars}} | any{{/hasVars}}; {{/additionalPropertiesType}} +{{#discriminator}} + /** + * Discriminator + * @type {string} + * @memberof {{classname}} + */ + '{{propertyBaseName}}': string; +{{/discriminator}} {{#vars}} /** * {{{description}}}