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 878383ded67..40503afaec1 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}}{ [key: string]: {{{additionalPropertiesType}}}{{#additionalPropertiesIsAnyType}}{{#hasVars}} | any{{/hasVars}}{{/additionalPropertiesIsAnyType}}; {{/additionalPropertiesType}} +{{#discriminator}} + /** + * Discriminator + * @type {string} + * @memberof {{classname}} + */ + '{{propertyBaseName}}': string; +{{/discriminator}} {{#vars}} /** * {{{description}}}