William Cheng 353320cb04
[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
2024-05-31 12:22:27 +08:00

1.9 KiB

FakeApi

All URIs are relative to http://localhost

Method HTTP request Description
getParameterNameMapping GET /fake/parameter-name-mapping parameter name mapping test

getParameterNameMapping

Environment getParameterNameMapping(underscoreType, type, typeWithUnderscore, httpDebugOption)

parameter name mapping test

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*

val apiInstance = FakeApi()
val underscoreType : kotlin.Long = 789 // kotlin.Long | _type
val type : kotlin.String = type_example // kotlin.String | type
val typeWithUnderscore : kotlin.String = typeWithUnderscore_example // kotlin.String | type_
val httpDebugOption : kotlin.String = httpDebugOption_example // kotlin.String | http debug option (to test parameter naming option)
try {
    val result : Environment = apiInstance.getParameterNameMapping(underscoreType, type, typeWithUnderscore, httpDebugOption)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling FakeApi#getParameterNameMapping")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling FakeApi#getParameterNameMapping")
    e.printStackTrace()
}

Parameters

| 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

Environment

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json