[Inline model resolver] better handling of inline responses and bug fixes (#12353)

* better handling of inline response schemas, bug fixes

* update samples

* add new files

* better code format

* remove unused ruby files

* fix java test

* remove unused js spec files

* remove inline_response_default_test.dart

* fix webclient tests

* fix spring tests
This commit is contained in:
William Cheng
2022-05-13 10:17:59 +08:00
committed by GitHub
parent 2cf3d3805f
commit 12cdacabbf
284 changed files with 7620 additions and 1220 deletions

View File

@@ -9,7 +9,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
## foo_get
> <InlineResponseDefault> foo_get
> <FooGetDefaultResponse> foo_get
@@ -34,7 +34,7 @@ end
This returns an Array which contains the response data, status code and headers.
> <Array(<InlineResponseDefault>, Integer, Hash)> foo_get_with_http_info
> <Array(<FooGetDefaultResponse>, Integer, Hash)> foo_get_with_http_info
```ruby
begin
@@ -42,7 +42,7 @@ begin
data, status_code, headers = api_instance.foo_get_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => <InlineResponseDefault>
p data # => <FooGetDefaultResponse>
rescue Petstore::ApiError => e
puts "Error when calling DefaultApi->foo_get_with_http_info: #{e}"
end
@@ -54,7 +54,7 @@ This endpoint does not need any parameter.
### Return type
[**InlineResponseDefault**](InlineResponseDefault.md)
[**FooGetDefaultResponse**](FooGetDefaultResponse.md)
### Authorization

View File

@@ -0,0 +1,18 @@
# Petstore::FooGetDefaultResponse
## Properties
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **string** | [**Foo**](Foo.md) | | [optional] |
## Example
```ruby
require 'petstore'
instance = Petstore::FooGetDefaultResponse.new(
string: null
)
```