[kotlin] Test array integer (enum) with kotlin client generator (#22336)

* add tests for array of enum

* update
This commit is contained in:
William Cheng
2025-11-12 16:39:01 +08:00
committed by GitHub
parent 57d304f3f6
commit 886e4a6dd0
35 changed files with 1514 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
# DefaultApi
All URIs are relative to *http://localhost*
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**operation**](DefaultApi.md#operation) | **GET** / | |
<a id="operation"></a>
# **operation**
> ModelWithIntArrayEnum operation()
### Example
```kotlin
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
try {
val result : ModelWithIntArrayEnum = apiInstance.operation()
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#operation")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#operation")
e.printStackTrace()
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**ModelWithIntArrayEnum**](ModelWithIntArrayEnum.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json

View File

@@ -0,0 +1,17 @@
# ModelWithIntArrayEnum
## Properties
| Name | Type | Description | Notes |
| ------------ | ------------- | ------------- | ------------- |
| **daysOfWeek** | [**inline**](#kotlin.collections.List&lt;DaysOfWeek&gt;) | | |
<a id="kotlin.collections.List<DaysOfWeek>"></a>
## Enum: daysOfWeek
| Name | Value |
| ---- | ----- |
| daysOfWeek | 0, 1, 2, 3, 4, 5, 6 |