File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/typescript/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{ {> licenseInfo} }
22{ {#models} }
33{ {#model} }
4- { {#tsImports} }
5- import { {{classname} } } from '{ {filename} }{ {importFileExtension} }';
6- { {/tsImports} }
74{ {#oneOf} }
8- { {#-first} }
9- import { findMatchingType } from '../models/TypeMatcher{ {importFileExtension} }';
10- { {/-first} }
5+ { {#-first} }{ {> model/modelOneOf} }{ {/-first} }
116{ {/oneOf} }
127{ {^oneOf} }
8+ { {#tsImports} }
9+ import { {{classname} } } from '{ {filename} }{ {importFileExtension} }';
10+ { {/tsImports} }
1311import { AttributeTypeMapEntry } from '../models/ModelTypes{ {importFileExtension} }';
1412import { HttpFile } from '../http/http{ {importFileExtension} }';
15- { {/oneOf} }
1613
1714{ {#description} }
1815/**
1916* { {{.} }}
2017*/
2118{ {/description} }
2219{ {^isEnum} }
23- { {#oneOf} }
24- { {#-first} }{ {> model/modelOneOf} }{ {/-first} }
25- { {/oneOf} }
26- { {^oneOf} }
2720export class { {classname} } { {#parent} }extends { {{.} }} { {/parent} }{
2821{{#vars} }
2922{ {#description} }
@@ -106,7 +99,6 @@ export enum {{classname}}{{enumName}} {
10699{ {/vars} }
107100
108101{ {/hasEnums} }
109- { {/oneOf} }
110102{ {/isEnum} }
111103{ {#isEnum} }
112104export enum { {classname} } {
@@ -117,5 +109,6 @@ export enum {{classname}} {
117109 { {/allowableValues} }
118110}
119111{ {/isEnum} }
112+ { {/oneOf} }
120113{ {/model} }
121114{ {/models} }
Original file line number Diff line number Diff line change 1+ { {#tsImports} }
2+ import { {{classname} } } from '{ {filename} }{ {importFileExtension} }';
3+ { {/tsImports} }
4+ import { findMatchingType } from '../models/TypeMatcher{ {importFileExtension} }';
5+
16/**
27 * @type { {classname} }
38 * Type
You can’t perform that action at this time.
0 commit comments