[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,15 +49,15 @@ class EnumApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) {
}
/**
* Get enums
*
* @return PetEnum
* @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
*/
* Get enums
*
* @return PetEnum
* @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
*/
@Suppress("UNCHECKED_CAST")
@Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun getEnum() : PetEnum {
@@ -79,12 +79,12 @@ class EnumApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) {
}
/**
* Get enums
*
* @return ApiResponse<PetEnum?>
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
*/
* Get enums
*
* @return ApiResponse<PetEnum?>
* @throws IllegalStateException If the request is not correctly configured
* @throws IOException Rethrows the OkHttp execute method exception
*/
@Suppress("UNCHECKED_CAST")
@Throws(IllegalStateException::class, IOException::class)
fun getEnumWithHttpInfo() : ApiResponse<PetEnum?> {
@@ -96,10 +96,10 @@ class EnumApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) {
}
/**
* To obtain the request config of the operation getEnum
*
* @return RequestConfig
*/
* To obtain the request config of the operation getEnum
*
* @return RequestConfig
*/
fun getEnumRequestConfig() : RequestConfig<Unit> {
val localVariableBody = null
val localVariableQuery: MultiValueMap = mutableMapOf()