Add support for multiple inheritance (#1664)

* add all parent names

* clean up supportsInheritance

* fix npe

* fix allVars, fix test cases

* add more tests, remove comments

* update docker m2 cache dir, add more tests, fix mandatory

* update samples

* regenerate js spec files

* add logic to detect self reference

* add isSelfReference flag to codegen property

* add ruby tests for cat model

* remove debugging info

* fix JS allvars not have x-js-doctype

* update samples

* update js samples
This commit is contained in:
William Cheng
2018-12-15 00:24:36 +08:00
committed by GitHub
parent 587bd56655
commit 8c599ebf12
214 changed files with 835 additions and 454 deletions

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -44,7 +44,7 @@
* @class
* @extends module:model/Animal
* @implements module:model/Animal
* @param className {}
* @param className {String}
*/
var exports = function(className) {
var _this = this;

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -44,7 +44,7 @@
* @class
* @extends module:model/Animal
* @implements module:model/Animal
* @param className {}
* @param className {String}
*/
var exports = function(className) {
var _this = this;

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*

View File

@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 3.3.4-SNAPSHOT
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*