[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
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **POST** test | Tests default values
| Class | Method | HTTP request | Description |
| ------------ | ------------- | ------------- | ------------- |
| *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **POST** test | Tests default values |
<a id="documentation-for-models"></a>

View File

@@ -2,12 +2,12 @@
# Apa
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**i0** | **kotlin.Int** | |
**n0** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | |
**i1** | **kotlin.Int** | | [optional]
**n1** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
| Name | Type | Description | Notes |
| ------------ | ------------- | ------------- | ------------- |
| **i0** | **kotlin.Int** | | |
| **n0** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | |
| **i1** | **kotlin.Int** | | [optional] |
| **n1** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional] |

View File

@@ -2,9 +2,9 @@
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**test**](DefaultApi.md#test) | **POST** test | Tests default values
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**test**](DefaultApi.md#test) | **POST** test | Tests default values |
@@ -55,38 +55,37 @@ webService.test(pi0, pi1, pn0, pn1, qi0, qi1, qi2, qi3, qn0, qn1, qn2, qn3, hi0,
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pi0** | **kotlin.Int**| | [default to 10]
**pi1** | **kotlin.Int**| |
**pn0** | **java.math.BigDecimal**| | [default to 10.0]
**pn1** | **java.math.BigDecimal**| |
**qi0** | **kotlin.Int**| | [optional] [default to 10]
**qi1** | **kotlin.Int**| | [default to 71]
**qi2** | **kotlin.Int**| | [optional]
**qi3** | **kotlin.Int**| |
**qn0** | **java.math.BigDecimal**| | [optional] [default to 10.0]
**qn1** | **java.math.BigDecimal**| | [default to 71.0]
**qn2** | **java.math.BigDecimal**| | [optional]
**qn3** | **java.math.BigDecimal**| |
**hi0** | **kotlin.Int**| | [optional] [default to 10]
**hi1** | **kotlin.Int**| | [default to 71]
**hi2** | **kotlin.Int**| | [optional]
**hi3** | **kotlin.Int**| |
**hn0** | **java.math.BigDecimal**| | [optional] [default to 10.0]
**hn1** | **java.math.BigDecimal**| | [default to 71.0]
**hn2** | **java.math.BigDecimal**| | [optional]
**hn3** | **java.math.BigDecimal**| |
**fi0** | **kotlin.Int**| | [optional] [default to 10]
**fi1** | **kotlin.Int**| | [default to 71]
**fi2** | **kotlin.Int**| | [optional]
**fi3** | **kotlin.Int**| |
**fn0** | **java.math.BigDecimal**| | [optional] [default to 10.0]
**fn1** | **java.math.BigDecimal**| | [default to 71.0]
**fn2** | **java.math.BigDecimal**| | [optional]
**fn3** | **java.math.BigDecimal**| |
**fn4** | [**kotlin.collections.List&lt;kotlin.String&gt;**](kotlin.String.md)| |
| **pi0** | **kotlin.Int**| | [default to 10] |
| **pi1** | **kotlin.Int**| | |
| **pn0** | **java.math.BigDecimal**| | [default to 10.0] |
| **pn1** | **java.math.BigDecimal**| | |
| **qi0** | **kotlin.Int**| | [optional] [default to 10] |
| **qi1** | **kotlin.Int**| | [default to 71] |
| **qi2** | **kotlin.Int**| | [optional] |
| **qi3** | **kotlin.Int**| | |
| **qn0** | **java.math.BigDecimal**| | [optional] [default to 10.0] |
| **qn1** | **java.math.BigDecimal**| | [default to 71.0] |
| **qn2** | **java.math.BigDecimal**| | [optional] |
| **qn3** | **java.math.BigDecimal**| | |
| **hi0** | **kotlin.Int**| | [optional] [default to 10] |
| **hi1** | **kotlin.Int**| | [default to 71] |
| **hi2** | **kotlin.Int**| | [optional] |
| **hi3** | **kotlin.Int**| | |
| **hn0** | **java.math.BigDecimal**| | [optional] [default to 10.0] |
| **hn1** | **java.math.BigDecimal**| | [default to 71.0] |
| **hn2** | **java.math.BigDecimal**| | [optional] |
| **hn3** | **java.math.BigDecimal**| | |
| **fi0** | **kotlin.Int**| | [optional] [default to 10] |
| **fi1** | **kotlin.Int**| | [default to 71] |
| **fi2** | **kotlin.Int**| | [optional] |
| **fi3** | **kotlin.Int**| | |
| **fn0** | **java.math.BigDecimal**| | [optional] [default to 10.0] |
| **fn1** | **java.math.BigDecimal**| | [default to 71.0] |
| **fn2** | **java.math.BigDecimal**| | [optional] |
| **fn3** | **java.math.BigDecimal**| | |
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **fn4** | [**kotlin.collections.List&lt;kotlin.String&gt;**](kotlin.String.md)| | |
### Return type

View File

@@ -43,5 +43,8 @@ data class Apa (
@Json(name = "n1")
val n1: java.math.BigDecimal? = null
)
) {
}