forked from loafle/openapi-generator-original
[kotlin] better oneOf, anyOf support (#18382)
* add validteJsonElement * add oneOf support * various fixes, add tests * minor fixes * minor fixes * update data class * remove comments * array support, add test * update api client constructor * add anyOf support * add new files * fix merge * update * update * update * update
This commit is contained in:
@@ -43,9 +43,9 @@ This runs all tests and packages the library.
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*FakeApi* | [**getParameterNameMapping**](docs/FakeApi.md#getparameternamemapping) | **GET** /fake/parameter-name-mapping | parameter name mapping test
|
||||
| Class | Method | HTTP request | Description |
|
||||
| ------------ | ------------- | ------------- | ------------- |
|
||||
| *FakeApi* | [**getParameterNameMapping**](docs/FakeApi.md#getparameternamemapping) | **GET** /fake/parameter-name-mapping | parameter name mapping test |
|
||||
|
||||
|
||||
<a id="documentation-for-models"></a>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# Environment
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**dummy** | **kotlin.String** | | [optional]
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------ | ------------- | ------------- | ------------- |
|
||||
| **dummy** | **kotlin.String** | | [optional] |
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**getParameterNameMapping**](FakeApi.md#getParameterNameMapping) | **GET** /fake/parameter-name-mapping | parameter name mapping test
|
||||
| Method | HTTP request | Description |
|
||||
| ------------- | ------------- | ------------- |
|
||||
| [**getParameterNameMapping**](FakeApi.md#getParameterNameMapping) | **GET** /fake/parameter-name-mapping | parameter name mapping test |
|
||||
|
||||
|
||||
<a id="getParameterNameMapping"></a>
|
||||
@@ -37,13 +37,12 @@ try {
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**underscoreType** | **kotlin.Long**| _type |
|
||||
**type** | **kotlin.String**| type |
|
||||
**typeWithUnderscore** | **kotlin.String**| type_ |
|
||||
**httpDebugOption** | **kotlin.String**| http debug option (to test parameter naming option) |
|
||||
| **underscoreType** | **kotlin.Long**| _type | |
|
||||
| **type** | **kotlin.String**| type | |
|
||||
| **typeWithUnderscore** | **kotlin.String**| type_ | |
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ------------- | ------------- | ------------- |
|
||||
| **httpDebugOption** | **kotlin.String**| http debug option (to test parameter naming option) | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
# PropertyNameMapping
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**httpDebugOperation** | **kotlin.String** | | [optional]
|
||||
**underscoreType** | **kotlin.String** | | [optional]
|
||||
**type** | **kotlin.String** | | [optional]
|
||||
**typeWithUnderscore** | **kotlin.String** | | [optional]
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------ | ------------- | ------------- | ------------- |
|
||||
| **httpDebugOperation** | **kotlin.String** | | [optional] |
|
||||
| **underscoreType** | **kotlin.String** | | [optional] |
|
||||
| **type** | **kotlin.String** | | [optional] |
|
||||
| **typeWithUnderscore** | **kotlin.String** | | [optional] |
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -31,5 +31,8 @@ data class Environment (
|
||||
@Json(name = "dummy")
|
||||
val dummy: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,5 +43,8 @@ data class PropertyNameMapping (
|
||||
@Json(name = "type_")
|
||||
val typeWithUnderscore: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user