[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:
William Cheng
2024-05-31 12:22:27 +08:00
committed by GitHub
parent 1c7e5c4726
commit 353320cb04
648 changed files with 8996 additions and 6249 deletions

View File

@@ -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>

View File

@@ -2,9 +2,9 @@
# Environment
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dummy** | **kotlin.String** | | [optional]
| Name | Type | Description | Notes |
| ------------ | ------------- | ------------- | ------------- |
| **dummy** | **kotlin.String** | | [optional] |

View File

@@ -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

View File

@@ -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] |

View File

@@ -31,5 +31,8 @@ data class Environment (
@Json(name = "dummy")
val dummy: kotlin.String? = null
)
) {
}

View File

@@ -43,5 +43,8 @@ data class PropertyNameMapping (
@Json(name = "type_")
val typeWithUnderscore: kotlin.String? = null
)
) {
}