diff --git a/src/generators/typescript/model.ts.mustache b/src/generators/typescript/model.ts.mustache index 5a2255d..8aa5f71 100644 --- a/src/generators/typescript/model.ts.mustache +++ b/src/generators/typescript/model.ts.mustache @@ -12,7 +12,7 @@ import * as schema from '../schema'; {{/classDoc}} */ export type {{{ className }}} = { - '@type': '{{{ modelTypePropName }}}'; + '@type': '{{{ modelType }}}'; '@context'?: string | string[]; {{#fieldList}} {{#if description }} @@ -58,7 +58,7 @@ export type {{{ className }}}OrSubClass = {{/classDoc}} */ export const {{{ className }}}JoiSchema = Joi.object({ - '@type': Joi.string().valid('{{{ modelTypePropName }}}').required(), + '@type': Joi.string().valid('{{{ modelType }}}').required(), '@context': Joi.alternatives().try([Joi.string(), Joi.array().items(Joi.string())]), {{#fieldList}} {{{ renderMemberName }}}: {{{ propertyJoiType }}},