Skip to content

Commit e725c4e

Browse files
authored
update typescript-fetch samples (#7936)
1 parent 920eafc commit e725c4e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

  • samples/client/petstore/typescript-fetch/builds/default-v3.0/models

samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
*/
1414

1515
import { exists, mapValues } from '../runtime';
16+
import {
17+
Decimal,
18+
DecimalFromJSON,
19+
DecimalFromJSONTyped,
20+
DecimalToJSON,
21+
} from './';
22+
1623
/**
1724
*
1825
* @export
@@ -55,6 +62,12 @@ export interface FormatTest {
5562
* @memberof FormatTest
5663
*/
5764
_double?: number;
65+
/**
66+
*
67+
* @type {Decimal}
68+
* @memberof FormatTest
69+
*/
70+
decimal?: Decimal;
5871
/**
5972
*
6073
* @type {string}
@@ -127,6 +140,7 @@ export function FormatTestFromJSONTyped(json: any, ignoreDiscriminator: boolean)
127140
'number': json['number'],
128141
'_float': !exists(json, 'float') ? undefined : json['float'],
129142
'_double': !exists(json, 'double') ? undefined : json['double'],
143+
'decimal': !exists(json, 'decimal') ? undefined : DecimalFromJSON(json['decimal']),
130144
'string': !exists(json, 'string') ? undefined : json['string'],
131145
'_byte': json['byte'],
132146
'binary': !exists(json, 'binary') ? undefined : json['binary'],
@@ -154,6 +168,7 @@ export function FormatTestToJSON(value?: FormatTest | null): any {
154168
'number': value.number,
155169
'float': value._float,
156170
'double': value._double,
171+
'decimal': DecimalToJSON(value.decimal),
157172
'string': value.string,
158173
'byte': value._byte,
159174
'binary': value.binary,

0 commit comments

Comments
 (0)