Skip to content

Commit c539772

Browse files
committed
update samples
1 parent ee3412a commit c539772

File tree

8 files changed

+45
-52
lines changed

8 files changed

+45
-52
lines changed

samples/client/others/typescript-node/encode-decode/build/api/defaultApi.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export class DefaultApi {
334334
/**
335335
*
336336
*/
337-
public async testDecodeArrayOfNullableObjectsGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<ComplexObject>; }> {
337+
public async testDecodeArrayOfNullableObjectsGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<ComplexObject | null>; }> {
338338
const localVarPath = this.basePath + '/test/decode/array-of/nullable-objects';
339339
let localVarQueryParameters: any = {};
340340
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -376,13 +376,13 @@ export class DefaultApi {
376376
localVarRequestOptions.form = localVarFormParams;
377377
}
378378
}
379-
return new Promise<{ response: http.IncomingMessage; body: Array<ComplexObject>; }>((resolve, reject) => {
379+
return new Promise<{ response: http.IncomingMessage; body: Array<ComplexObject | null>; }>((resolve, reject) => {
380380
localVarRequest(localVarRequestOptions, (error, response, body) => {
381381
if (error) {
382382
reject(error);
383383
} else {
384384
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
385-
body = ObjectSerializer.deserialize(body, "Array<ComplexObject>");
385+
body = ObjectSerializer.deserialize(body, "Array<ComplexObject | null>");
386386
resolve({ response: response, body: body });
387387
} else {
388388
reject(new HttpError(response, body, response.statusCode));
@@ -1187,7 +1187,7 @@ export class DefaultApi {
11871187
*
11881188
* @param complexObject
11891189
*/
1190-
public async testEncodeArrayOfNullableObjectsPost (complexObject: Array<ComplexObject>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
1190+
public async testEncodeArrayOfNullableObjectsPost (complexObject: Array<ComplexObject | null>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
11911191
const localVarPath = this.basePath + '/test/encode/array-of/nullable-objects';
11921192
let localVarQueryParameters: any = {};
11931193
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -1209,7 +1209,7 @@ export class DefaultApi {
12091209
uri: localVarPath,
12101210
useQuerystring: this._useQuerystring,
12111211
json: true,
1212-
body: ObjectSerializer.serialize(complexObject, "Array<ComplexObject>")
1212+
body: ObjectSerializer.serialize(complexObject, "Array<ComplexObject | null>")
12131213
};
12141214

12151215
let authenticationPromise = Promise.resolve();

samples/client/others/typescript/encode-decode/build/apis/DefaultApi.ts

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/encode-decode/build/docs/DefaultApi.md

Lines changed: 6 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/encode-decode/build/types/ObjectParamAPI.ts

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/encode-decode/build/types/ObservableAPI.ts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/encode-decode/build/types/PromiseAPI.ts

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/api/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ paths:
6464
content:
6565
application/json:
6666
schema:
67-
$ref: "#/components/schemas/myObject"
67+
allOf:
68+
- $ref: "#/components/schemas/myObject"
69+
nullable: true
6870
description: ""
6971
tags:
7072
- fake

samples/client/petstore/java/okhttp-gson-3.1/api/openapi.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,9 @@ paths:
786786
content:
787787
application/json:
788788
schema:
789-
$ref: "#/components/schemas/myObject"
789+
allOf:
790+
- $ref: "#/components/schemas/myObject"
791+
nullable: true
790792
description: ""
791793
tags:
792794
- fake
@@ -799,7 +801,9 @@ paths:
799801
content:
800802
application/json:
801803
schema:
802-
$ref: "#/components/schemas/myObject"
804+
allOf:
805+
- $ref: "#/components/schemas/myObject"
806+
nullable: true
803807
description: ""
804808
tags:
805809
- fake
@@ -813,7 +817,9 @@ paths:
813817
application/json:
814818
schema:
815819
items:
816-
$ref: "#/components/schemas/myObject"
820+
allOf:
821+
- $ref: "#/components/schemas/myObject"
822+
nullable: true
817823
nullable: true
818824
type: array
819825
description: ""

0 commit comments

Comments
 (0)