[JAVA] fix toUrlQueryString for BigDecimal (#15764)

* add MyImportTest.java

* fix original issue

* fix same issue for native library

* remove MyImportTest

* add test configs

* generate samples (again?)

* generate samples again

* generate samples again, undo pom.xml mistake [amended to retrigger circliCi]
This commit is contained in:
martin-mfg
2023-06-08 03:34:06 +02:00
committed by GitHub
parent fbe768bb9c
commit b7f2b723aa
176 changed files with 7934 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**fake_big_decimal_map**](FakeApi.md#fake_big_decimal_map) | **GET** /fake/BigDecimalMap | |
| [**fake_health_get**](FakeApi.md#fake_health_get) | **GET** /fake/health | Health check endpoint |
| [**fake_http_signature_test**](FakeApi.md#fake_http_signature_test) | **GET** /fake/http-signature-test | test http signature authentication |
| [**fake_outer_boolean_serialize**](FakeApi.md#fake_outer_boolean_serialize) | **POST** /fake/outer/boolean | |
@@ -23,6 +24,67 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | |
## fake_big_decimal_map
> <FakeBigDecimalMap200Response> fake_big_decimal_map
for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
### Examples
```ruby
require 'time'
require 'petstore'
api_instance = Petstore::FakeApi.new
begin
result = api_instance.fake_big_decimal_map
p result
rescue Petstore::ApiError => e
puts "Error when calling FakeApi->fake_big_decimal_map: #{e}"
end
```
#### Using the fake_big_decimal_map_with_http_info variant
This returns an Array which contains the response data, status code and headers.
> <Array(<FakeBigDecimalMap200Response>, Integer, Hash)> fake_big_decimal_map_with_http_info
```ruby
begin
data, status_code, headers = api_instance.fake_big_decimal_map_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => <FakeBigDecimalMap200Response>
rescue Petstore::ApiError => e
puts "Error when calling FakeApi->fake_big_decimal_map_with_http_info: #{e}"
end
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**FakeBigDecimalMap200Response**](FakeBigDecimalMap200Response.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: */*
## fake_health_get
> <HealthCheckResult> fake_health_get

View File

@@ -0,0 +1,20 @@
# Petstore::FakeBigDecimalMap200Response
## Properties
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **some_id** | **Float** | | [optional] |
| **some_map** | **Hash&lt;String, Float&gt;** | | [optional] |
## Example
```ruby
require 'petstore'
instance = Petstore::FakeBigDecimalMap200Response.new(
some_id: null,
some_map: null
)
```