[BUG][Kotlin-client] Handling default values of parameters (#12255)

* Bugfix Kotlin-client: Handling default values of parameters

* Adding object
This commit is contained in:
Johan Sjöblom
2022-04-29 14:26:29 +00:00
committed by GitHub
parent b6a8037f62
commit 8950a9a3c0
221 changed files with 12616 additions and 5807 deletions

View File

@@ -49,16 +49,16 @@ class DefaultApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath
}
/**
*
*
* @param apa
* @return void
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
* @throws UnsupportedOperationException If the API returns an informational or redirection response
* @throws ClientException If the API returns a client error response
* @throws ServerException If the API returns a server error response
*/
*
*
* @param apa
* @return void
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
* @throws UnsupportedOperationException If the API returns an informational or redirection response
* @throws ClientException If the API returns a client error response
* @throws ServerException If the API returns a server error response
*/
@Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun testPost(apa: Apa) : Unit {
val localVarResponse = testPostWithHttpInfo(apa = apa)
@@ -79,13 +79,13 @@ class DefaultApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath
}
/**
*
*
* @param apa
* @return ApiResponse<Unit?>
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
*/
*
*
* @param apa
* @return ApiResponse<Unit?>
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
*/
@Throws(IllegalStateException::class, IOException::class)
fun testPostWithHttpInfo(apa: Apa) : ApiResponse<Unit?> {
val localVariableConfig = testPostRequestConfig(apa = apa)
@@ -96,11 +96,11 @@ class DefaultApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath
}
/**
* To obtain the request config of the operation testPost
*
* @param apa
* @return RequestConfig
*/
* To obtain the request config of the operation testPost
*
* @param apa
* @return RequestConfig
*/
fun testPostRequestConfig(apa: Apa) : RequestConfig<Apa> {
val localVariableBody = apa
val localVariableQuery: MultiValueMap = mutableMapOf()