Skip to content

Commit caefc42

Browse files
author
Carolina Wright
committed
#363 Multiple inheritance types render incomplete in method response
1 parent a313feb commit caefc42

File tree

4 files changed

+2246
-4421
lines changed

4 files changed

+2246
-4421
lines changed

dist/scripts/api-console-vendor.js

Lines changed: 2236 additions & 4417 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scripts/api-console.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,7 @@
27122712
$rootScope.$broadcast(TOGGLE_POPOVER);
27132713

27142714
$timeout(function () {
2715-
$scope.selectedType = RAML.Inspector.Types.mergeProperty({
2715+
$scope.selectedType = RAML.Inspector.Types.mergeType({
27162716
displayName: type,
27172717
type: [type]
27182718
},
@@ -4504,7 +4504,10 @@ RAML.Inspector = (function() {
45044504
if (superType) {
45054505
var superTypeProperties = convertProperties(superType);
45064506
properties = angular.extend({}, superTypeProperties, properties);
4507-
return getSuperTypesProperties(properties, superType.type[0], types);
4507+
superType.type.forEach(function (typeName) {
4508+
var typeProperties = getSuperTypesProperties(properties, typeName, types);
4509+
properties = angular.extend({}, typeProperties, properties);
4510+
});
45084511
}
45094512
}
45104513
return properties;

src/app/directives/type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
$rootScope.$broadcast(TOGGLE_POPOVER);
5050

5151
$timeout(function () {
52-
$scope.selectedType = RAML.Inspector.Types.mergeProperty({
52+
$scope.selectedType = RAML.Inspector.Types.mergeType({
5353
displayName: type,
5454
type: [type]
5555
},

src/common/inspector/types.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@
6868
if (superType) {
6969
var superTypeProperties = convertProperties(superType);
7070
properties = angular.extend({}, superTypeProperties, properties);
71-
return getSuperTypesProperties(properties, superType.type[0], types);
71+
superType.type.forEach(function (typeName) {
72+
var typeProperties = getSuperTypesProperties(properties, typeName, types);
73+
properties = angular.extend({}, typeProperties, properties);
74+
});
7275
}
7376
}
7477
return properties;

0 commit comments

Comments
 (0)