@@ -3463,19 +3463,21 @@ RAML.Inspector = (function() {
34633463 var NamedParameters = function ( plain , parameterized ) {
34643464 this . plain = copy ( plain ) ;
34653465 this . parameterized = parameterized ;
3466-
3467- var that = this ;
3468-
34693466 Object . keys ( this . plain ) . map ( function ( key ) {
3470- var data = that . plain [ key ] . definitions [ 0 ] ;
3467+ var data = this . plain [ key ] . definitions [ 0 ] ;
34713468
34723469 if ( typeof data . enum !== 'undefined' ) {
34733470 if ( ! data . required ) {
34743471 var temp = [ '' ] ;
34753472 data . enum = temp . concat ( data . enum ) ;
34763473 }
34773474 }
3478- } ) ;
3475+
3476+ if ( key . charAt ( 0 ) === '$' ) {
3477+ var tempKey = '$' + key . substring ( 1 ) ;
3478+ this . plain [ tempKey ] = this . plain [ key ] ;
3479+ }
3480+ } . bind ( this ) ) ;
34793481
34803482 Object . keys ( parameterized || { } ) . forEach ( function ( key ) {
34813483 parameterized [ key ] . created = [ ] ;
@@ -5509,7 +5511,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
55095511 "\n" +
55105512 " <sidebar ng-show=\"raml.baseUri\"></sidebar>\n" +
55115513 "\n" +
5512- " <div class=\"raml-console-sidebar-controls raml-console-sidebar-controls-collapse\" ng-click=\"collapseSidebar($event)\" style=\"right: -1px; position: absolute;\">\n" +
5514+ " <div class=\"raml-console-sidebar-controls raml-console-sidebar-controls-collapse\" ng-click=\"collapseSidebar($event)\" style=\"right: -1px; position: absolute;\"ng-hide=\"!raml.baseUri\" >\n" +
55135515 " <button class=\"raml-console-collapse\">\n" +
55145516 " <svg style=\"transform: rotate(-180deg);\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 612 792\" enable-background=\"new 0 0 612 792\" xml:space=\"preserve\">\n" +
55155517 " <g id=\"Layer_3\">\n" +
@@ -5712,8 +5714,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
57125714 " <div ng-if=\"requestOptions.url\">\n" +
57135715 " <h3 class=\"raml-console-sidebar-response-head raml-console-sidebar-response-head-pre\">Request URL</h3>\n" +
57145716 " <div class=\"raml-console-sidebar-response-item\">\n" +
5715- " <p class=\"raml-console-sidebar-response-metadata raml-console-sidebar-request-url\">{{requestOptions.baseUrl}}<span ng-repeat=\"(key, value) in parameters\"><span ng-hide=\"$first\">&</span><b>{{key}}</b>=<i>{{value[0]}}</i></span>\n" +
5716- " </p>\n" +
5717+ " <p class=\"raml-console-sidebar-response-metadata raml-console-sidebar-request-url\">{{requestOptions.url}}</p>\n" +
57175718 " </div>\n" +
57185719 " </div>\n" +
57195720 "\n" +
0 commit comments