Skip to content

Commit 1f1f9ea

Browse files
authored
Merge pull request #512 from mulesoft/3.x.x/develop
3.x.x/develop
2 parents 26a9fc3 + 33a203c commit 1f1f9ea

File tree

7 files changed

+81
-71
lines changed

7 files changed

+81
-71
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"jszip": "~2.0.0",
2323
"marked": "~0.3.1",
2424
"raml-client-generator": "~0.0.7",
25-
"raml-1-parser": "https://github.com/raml-org/raml-js-parser-2/releases/download/1.1.26/raml-1-parser.zip",
25+
"raml-1-parser": "https://github.com/raml-org/raml-js-parser-2/releases/download/1.1.29/raml-1-parser.zip",
2626
"resolve-url": "~0.2.1",
2727
"slug": "~0.8.0",
2828
"velocity": "~1.1.0",

dist/scripts/api-console-vendor.js

Lines changed: 66 additions & 66 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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,11 @@
14111411
}
14121412
}
14131413

1414+
$scope.getNativeType = function(type) {
1415+
var paramType = getParamType(type).type;
1416+
return Array.isArray(paramType) ? paramType[0] : paramType;
1417+
};
1418+
14141419
$scope.isEnum = function (definition) {
14151420
var paramType = getParamType(definition);
14161421
return paramType.hasOwnProperty('enum');
@@ -7850,7 +7855,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
78507855
" <a class=\"raml-console-sidebar-override\" ng-if=\"canOverride(param)\" ng-click=\"overrideField($event, param)\">Override</a>\n" +
78517856
" <span class=\"raml-console-side-bar-required-field\" ng-if=\"param.required\">*</span>\n" +
78527857
" <label ng-if=\"param.isFromSecurityScheme\" class=\"raml-console-sidebar-security-label\">from security scheme</label>\n" +
7853-
" <span class=\"raml-console-resource-param-instructional\">{{toString(param.type)}}</span>\n" +
7858+
" <span class=\"raml-console-resource-param-instructional\">{{getNativeType(param)}}</span>\n" +
78547859
" </label>\n" +
78557860
"\n" +
78567861
" <div ng-if=\"!param.properties && !isArray(param)\">\n" +

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "api-console",
3-
"version": "3.0.19",
3+
"version": "3.0.20",
44
"description": "Api-Console for RAML based app",
55
"files": [
66
"dist",

src/app/directives/raml-field.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
}
2828
}
2929

30+
$scope.getNativeType = function(type) {
31+
var paramType = getParamType(type).type;
32+
return Array.isArray(paramType) ? paramType[0] : paramType;
33+
};
34+
3035
$scope.isEnum = function (definition) {
3136
var paramType = getParamType(definition);
3237
return paramType.hasOwnProperty('enum');

src/app/directives/raml-field.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a class="raml-console-sidebar-override" ng-if="canOverride(param)" ng-click="overrideField($event, param)">Override</a>
55
<span class="raml-console-side-bar-required-field" ng-if="param.required">*</span>
66
<label ng-if="param.isFromSecurityScheme" class="raml-console-sidebar-security-label">from security scheme</label>
7-
<span class="raml-console-resource-param-instructional">{{toString(param.type)}}</span>
7+
<span class="raml-console-resource-param-instructional">{{getNativeType(param)}}</span>
88
</label>
99

1010
<div ng-if="!param.properties && !isArray(param)">

test/regression/standalone/directiveSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ module.exports = function() {
297297
resourcePo.toggleResourceMethod(2, 0);
298298

299299
//Assert
300-
assert.ifDisplayingProperties(2, ['one', 'two'], ['userPicture', 'userName']);
300+
assert.ifDisplayingProperties(2, ['one', 'two'], ['file', 'string']);
301301
assert.ifDisplayingDocumentationBodyProperties(2, ['one', 'two'], ['userPicture', 'userName']);
302302
assert.ifDisplayingPropertyExample(2, 'two', 'blah');
303303
});

0 commit comments

Comments
 (0)