forked from loafle/openapi-generator-original
Better inline model resolver to handle inline schema in array item (#12104)
* better support of inline schema in array item * update tests * update samples * regenerate samples * fix allof naming, remove files * add files * update samples * update readme * fix tests * update samples * update samples * add new files * update test spec * add back tests * remove unused files * comment out python test * update js test using own spec * remove files * remove unused files * remove files * remove unused files * better handling of allOf with a single type * comment out go test * remove test_all_of_with_single_ref_single_ref_type.py * fix inline resolver, uncomment go test
This commit is contained in:
@@ -59,7 +59,6 @@ import Return from './model/Return';
|
||||
import SpecialModelName from './model/SpecialModelName';
|
||||
import Tag from './model/Tag';
|
||||
import User from './model/User';
|
||||
import UserType from './model/UserType';
|
||||
import AnotherFakeApi from './api/AnotherFakeApi';
|
||||
import DefaultApi from './api/DefaultApi';
|
||||
import FakeApi from './api/FakeApi';
|
||||
@@ -383,12 +382,6 @@ export {
|
||||
*/
|
||||
User,
|
||||
|
||||
/**
|
||||
* The UserType model constructor.
|
||||
* @property {module:model/UserType}
|
||||
*/
|
||||
UserType,
|
||||
|
||||
/**
|
||||
* The AnotherFakeApi service constructor.
|
||||
* @property {module:api/AnotherFakeApi}
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
/**
|
||||
* Enum class UserType.
|
||||
* Enum class SingleRefType.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
export default class UserType {
|
||||
export default class SingleRefType {
|
||||
|
||||
/**
|
||||
* value: "admin"
|
||||
@@ -35,9 +35,9 @@ export default class UserType {
|
||||
|
||||
|
||||
/**
|
||||
* Returns a <code>UserType</code> enum value from a Javascript object name.
|
||||
* Returns a <code>SingleRefType</code> enum value from a Javascript object name.
|
||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||
* @return {module:model/UserType} The enum <code>UserType</code> value.
|
||||
* @return {module:model/SingleRefType} The enum <code>SingleRefType</code> value.
|
||||
*/
|
||||
static constructFromObject(object) {
|
||||
return object;
|
||||
@@ -12,7 +12,6 @@
|
||||
*/
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import UserType from './UserType';
|
||||
|
||||
/**
|
||||
* The User model module.
|
||||
@@ -72,9 +71,6 @@ class User {
|
||||
if (data.hasOwnProperty('userStatus')) {
|
||||
obj['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('userType')) {
|
||||
obj['userType'] = ApiClient.convertToType(data['userType'], UserType);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
@@ -123,11 +119,6 @@ User.prototype['phone'] = undefined;
|
||||
*/
|
||||
User.prototype['userStatus'] = undefined;
|
||||
|
||||
/**
|
||||
* @member {module:model/UserType} userType
|
||||
*/
|
||||
User.prototype['userType'] = undefined;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user