mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 17:37:10 +00:00
[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:
@@ -13,7 +13,7 @@
|
||||
|
||||
|
||||
import ApiClient from "../ApiClient";
|
||||
import InlineResponseDefault from '../model/InlineResponseDefault';
|
||||
import FooGetDefaultResponse from '../model/FooGetDefaultResponse';
|
||||
|
||||
/**
|
||||
* Default service.
|
||||
@@ -36,7 +36,7 @@ export default class DefaultApi {
|
||||
|
||||
|
||||
/**
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponseDefault} and HTTP response
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FooGetDefaultResponse} and HTTP response
|
||||
*/
|
||||
fooGetWithHttpInfo() {
|
||||
let postBody = null;
|
||||
@@ -53,7 +53,7 @@ export default class DefaultApi {
|
||||
let authNames = [];
|
||||
let contentTypes = [];
|
||||
let accepts = ['application/json'];
|
||||
let returnType = InlineResponseDefault;
|
||||
let returnType = FooGetDefaultResponse;
|
||||
return this.apiClient.callApi(
|
||||
'/foo', 'GET',
|
||||
pathParams, queryParams, headerParams, formParams, postBody,
|
||||
@@ -62,7 +62,7 @@ export default class DefaultApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponseDefault}
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FooGetDefaultResponse}
|
||||
*/
|
||||
fooGet() {
|
||||
return this.fooGetWithHttpInfo()
|
||||
|
||||
Reference in New Issue
Block a user