OkHttpClient - fix enum properties in requests (#12661)

* OkHttpClient - fix enum properties in requests

* Has been committed the generated code

Co-authored-by: Mikhail Yartsev <mihail.yartsev@lamoda.ru>
This commit is contained in:
Yartsev
2022-06-22 23:29:12 +03:00
committed by GitHub
parent b1ea0f3af3
commit 75b883c5a5
39 changed files with 111 additions and 111 deletions

View File

@@ -182,7 +182,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
return RequestConfig(
method = RequestMethod.DELETE,
path = "/pet/{petId}".replace("{"+"petId"+"}", "$petId"),
path = "/pet/{petId}".replace("{"+"petId"+"}", petId.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody
@@ -405,7 +405,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
return RequestConfig(
method = RequestMethod.GET,
path = "/pet/{petId}".replace("{"+"petId"+"}", "$petId"),
path = "/pet/{petId}".replace("{"+"petId"+"}", petId.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody
@@ -548,7 +548,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
return RequestConfig(
method = RequestMethod.POST,
path = "/pet/{petId}".replace("{"+"petId"+"}", "$petId"),
path = "/pet/{petId}".replace("{"+"petId"+"}", petId.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody
@@ -626,7 +626,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
return RequestConfig(
method = RequestMethod.POST,
path = "/pet/{petId}/uploadImage".replace("{"+"petId"+"}", "$petId"),
path = "/pet/{petId}/uploadImage".replace("{"+"petId"+"}", petId.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody

View File

@@ -109,7 +109,7 @@ class StoreApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
return RequestConfig(
method = RequestMethod.DELETE,
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", "$orderId"),
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", orderId.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody
@@ -246,7 +246,7 @@ class StoreApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
return RequestConfig(
method = RequestMethod.GET,
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", "$orderId"),
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", orderId.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody

View File

@@ -310,7 +310,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
return RequestConfig(
method = RequestMethod.DELETE,
path = "/user/{username}".replace("{"+"username"+"}", "$username"),
path = "/user/{username}".replace("{"+"username"+"}", username.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody
@@ -380,7 +380,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
return RequestConfig(
method = RequestMethod.GET,
path = "/user/{username}".replace("{"+"username"+"}", "$username"),
path = "/user/{username}".replace("{"+"username"+"}", username.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody
@@ -591,7 +591,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
return RequestConfig(
method = RequestMethod.PUT,
path = "/user/{username}".replace("{"+"username"+"}", "$username"),
path = "/user/{username}".replace("{"+"username"+"}", username.toString()),
query = localVariableQuery,
headers = localVariableHeaders,
body = localVariableBody