Skip to content

Commit d255ed1

Browse files
Update samples
1 parent bb6ef2d commit d255ed1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

samples/client/petstore/typescript-fetch/builds/oneOf/models/TestArrayResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function TestArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: b
5757
if (json.every(item => typeof item === 'string')) {
5858
return json;
5959
}
60-
}
60+
}
6161
return {} as any;
6262
}
6363

@@ -81,7 +81,7 @@ export function TestArrayResponseToJSONTyped(value?: TestArrayResponse | null, i
8181
return value;
8282
}
8383
if (Array.isArray(value)) {
84-
if (value.every(item => typeof item === 'string') {
84+
if (value.every(item => typeof item === 'string')) {
8585
return value;
8686
}
8787
}

samples/client/petstore/typescript-fetch/builds/oneOf/models/TestResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function TestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
5151
if (instanceOfTestB(json)) {
5252
return TestBFromJSONTyped(json, true);
5353
}
54-
if(typeof json === 'string') {
54+
if (typeof json === 'string') {
5555
return json;
5656
}
5757
return {} as any;
@@ -74,7 +74,7 @@ export function TestResponseToJSONTyped(value?: TestResponse | null, ignoreDiscr
7474
if (instanceOfTestB(value)) {
7575
return TestBToJSON(value as TestB);
7676
}
77-
if(typeof value === 'string') {
77+
if (typeof value === 'string') {
7878
return value;
7979
}
8080
return {};

0 commit comments

Comments
 (0)