mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 13:37:10 +00:00
[kotlin] Test array integer (enum) with kotlin client generator (#22336)
* add tests for array of enum * update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
# ModelWithIntArrayEnum
|
||||
|
||||
## Properties
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------ | ------------- | ------------- | ------------- |
|
||||
| **daysOfWeek** | [**inline**](#kotlin.collections.List<DaysOfWeek>) | | |
|
||||
|
||||
|
||||
<a id="kotlin.collections.List<DaysOfWeek>"></a>
|
||||
## Enum: daysOfWeek
|
||||
| Name | Value |
|
||||
| ---- | ----- |
|
||||
| daysOfWeek | 0, 1, 2, 3, 4, 5, 6 |
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user