mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 08:26:11 +00:00
* fix #16797 and #15796 spring child constructor missing parent params * root cause and update the DefaultCodegen.java to add missing property when with multi inheritance * rollback SpringCodegen.java * update samples * rollback with master cause #16992 fixed this issue too * still using orignal design * catchup master * catchup master * catchup master * fix * add tests --------- Co-authored-by: dabdirb <dabdirb@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
| [**fake_outer_number_serialize**](FakeApi.md#fake_outer_number_serialize) | **POST** /fake/outer/number | |
|
||||
| [**fake_outer_string_serialize**](FakeApi.md#fake_outer_string_serialize) | **POST** /fake/outer/string | |
|
||||
| [**fake_property_enum_integer_serialize**](FakeApi.md#fake_property_enum_integer_serialize) | **POST** /fake/property/enum-int | |
|
||||
| [**test_additional_properties_reference**](FakeApi.md#test_additional_properties_reference) | **POST** /fake/additionalProperties-reference | test referenced additionalProperties |
|
||||
| [**test_body_with_binary**](FakeApi.md#test_body_with_binary) | **PUT** /fake/body-with-binary | |
|
||||
| [**test_body_with_file_schema**](FakeApi.md#test_body_with_file_schema) | **PUT** /fake/body-with-file-schema | |
|
||||
| [**test_body_with_query_params**](FakeApi.md#test_body_with_query_params) | **PUT** /fake/body-with-query-params | |
|
||||
@@ -544,6 +545,69 @@ No authorization required
|
||||
- **Accept**: */*
|
||||
|
||||
|
||||
## test_additional_properties_reference
|
||||
|
||||
> test_additional_properties_reference(request_body)
|
||||
|
||||
test referenced additionalProperties
|
||||
|
||||
|
||||
|
||||
### Examples
|
||||
|
||||
```ruby
|
||||
require 'time'
|
||||
require 'petstore'
|
||||
|
||||
api_instance = Petstore::FakeApi.new
|
||||
request_body = { key: 3.56} # Hash<String, Object> | request body
|
||||
|
||||
begin
|
||||
# test referenced additionalProperties
|
||||
api_instance.test_additional_properties_reference(request_body)
|
||||
rescue Petstore::ApiError => e
|
||||
puts "Error when calling FakeApi->test_additional_properties_reference: #{e}"
|
||||
end
|
||||
```
|
||||
|
||||
#### Using the test_additional_properties_reference_with_http_info variant
|
||||
|
||||
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
||||
|
||||
> <Array(nil, Integer, Hash)> test_additional_properties_reference_with_http_info(request_body)
|
||||
|
||||
```ruby
|
||||
begin
|
||||
# test referenced additionalProperties
|
||||
data, status_code, headers = api_instance.test_additional_properties_reference_with_http_info(request_body)
|
||||
p status_code # => 2xx
|
||||
p headers # => { ... }
|
||||
p data # => nil
|
||||
rescue Petstore::ApiError => e
|
||||
puts "Error when calling FakeApi->test_additional_properties_reference_with_http_info: #{e}"
|
||||
end
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ---- | ---- | ----------- | ----- |
|
||||
| **request_body** | [**Hash<String, Object>**](Object.md) | request body | |
|
||||
|
||||
### Return type
|
||||
|
||||
nil (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
## test_body_with_binary
|
||||
|
||||
> test_body_with_binary(body)
|
||||
|
||||
Reference in New Issue
Block a user