From 244190e5c81617b1d75b164667c5812c38aa2acd Mon Sep 17 00:00:00 2001 From: Al Scott Date: Fri, 2 May 2025 11:33:46 -0600 Subject: [PATCH] Regenerate samples after merge --- .../builds/oneOf/apis/DefaultApi.ts | 5 ++- .../validation-attributes/apis/PetApi.ts | 44 +++++++++++++++---- .../validation-attributes/apis/StoreApi.ts | 22 ++++++++-- .../validation-attributes/apis/UserApi.ts | 43 ++++++++++++++---- 4 files changed, 93 insertions(+), 21 deletions(-) diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts index 5269078307f..be5025be118 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts @@ -64,8 +64,11 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/test-array`; + const response = await this.request({ - path: `/test-array`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts index a791292c47a..b66ef90918b 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts @@ -90,8 +90,11 @@ export class PetApi extends runtime.BaseAPI { headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); } + + let urlPath = `/pet`; + const response = await this.request({ - path: `/pet`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -135,8 +138,12 @@ export class PetApi extends runtime.BaseAPI { headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); } + + let urlPath = `/pet/{petId}`; + urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + const response = await this.request({ - path: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -178,8 +185,11 @@ export class PetApi extends runtime.BaseAPI { headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["read:pets"]); } + + let urlPath = `/pet/findByStatus`; + const response = await this.request({ - path: `/pet/findByStatus`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -223,8 +233,11 @@ export class PetApi extends runtime.BaseAPI { headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["read:pets"]); } + + let urlPath = `/pet/findByTags`; + const response = await this.request({ - path: `/pet/findByTags`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -263,8 +276,12 @@ export class PetApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/pet/{petId}`; + urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + const response = await this.request({ - path: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -305,8 +322,11 @@ export class PetApi extends runtime.BaseAPI { headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); } + + let urlPath = `/pet`; + const response = await this.request({ - path: `/pet`, + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, @@ -368,8 +388,12 @@ export class PetApi extends runtime.BaseAPI { formParams.append('status', requestParameters['status'] as any); } + + let urlPath = `/pet/{petId}`; + urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + const response = await this.request({ - path: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -432,8 +456,12 @@ export class PetApi extends runtime.BaseAPI { formParams.append('file', requestParameters['file'] as any); } + + let urlPath = `/pet/{petId}/uploadImage`; + urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + const response = await this.request({ - path: `/pet/{petId}/uploadImage`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts index 2e8408d1d2c..7f1528fdb2c 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts @@ -55,8 +55,12 @@ export class StoreApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/store/order/{orderId}`; + urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + const response = await this.request({ - path: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -86,8 +90,11 @@ export class StoreApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/store/inventory`; + const response = await this.request({ - path: `/store/inventory`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -121,8 +128,12 @@ export class StoreApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/store/order/{orderId}`; + urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + const response = await this.request({ - path: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -158,8 +169,11 @@ export class StoreApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + + let urlPath = `/store/order`; + const response = await this.request({ - path: `/store/order`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts index 39e604591ff..756c61cbee4 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts @@ -79,8 +79,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/user`; + const response = await this.request({ - path: `/user`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -120,8 +123,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/user/createWithArray`; + const response = await this.request({ - path: `/user/createWithArray`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -161,8 +167,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/user/createWithList`; + const response = await this.request({ - path: `/user/createWithList`, + path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, @@ -200,8 +209,12 @@ export class UserApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/user/{username}`; + urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + const response = await this.request({ - path: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))), + path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -234,8 +247,12 @@ export class UserApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/user/{username}`; + urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + const response = await this.request({ - path: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))), + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -284,8 +301,11 @@ export class UserApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + + let urlPath = `/user/login`; + const response = await this.request({ - path: `/user/login`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -320,8 +340,11 @@ export class UserApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/user/logout`; + const response = await this.request({ - path: `/user/logout`, + path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, @@ -367,8 +390,12 @@ export class UserApi extends runtime.BaseAPI { headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication } + + let urlPath = `/user/{username}`; + urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + const response = await this.request({ - path: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))), + path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters,