closes #34
This commit is contained in:
90
dist/swagger-ui.js
vendored
90
dist/swagger-ui.js
vendored
@@ -316,20 +316,51 @@ function program3(depth0,data) {
|
||||
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
||||
templates['param'] = template(function (Handlebars,depth0,helpers,partials,data) {
|
||||
helpers = helpers || Handlebars.helpers;
|
||||
var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
|
||||
var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
|
||||
|
||||
function program1(depth0,data) {
|
||||
|
||||
var buffer = "", stack1;
|
||||
buffer += "\n <input minlength='0' name='";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "' placeholder='' type='text' value='";
|
||||
foundHelper = helpers.defaultValue;
|
||||
stack1 = foundHelper || depth0.defaultValue;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "'/>\n ";
|
||||
return buffer;}
|
||||
|
||||
function program3(depth0,data) {
|
||||
|
||||
var buffer = "", stack1;
|
||||
buffer += "\n <input minlength='0' name='";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "' placeholder='' type='text' value=''/>\n ";
|
||||
return buffer;}
|
||||
|
||||
buffer += "<td class='code'>";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "</td>\n<td>\n <input minlength='0' name='";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "' placeholder='' type='text' value=''/>\n</td>\n<td width='500'>";
|
||||
buffer += escapeExpression(stack1) + "</td>\n<td>\n ";
|
||||
foundHelper = helpers.defaultValue;
|
||||
stack1 = foundHelper || depth0.defaultValue;
|
||||
stack2 = helpers['if'];
|
||||
tmp1 = self.program(1, program1, data);
|
||||
tmp1.hash = {};
|
||||
tmp1.fn = tmp1;
|
||||
tmp1.inverse = self.program(3, program3, data);
|
||||
stack1 = stack2.call(depth0, stack1, tmp1);
|
||||
if(stack1 || stack1 === 0) { buffer += stack1; }
|
||||
buffer += "\n</td>\n<td width='500'>";
|
||||
foundHelper = helpers.description;
|
||||
stack1 = foundHelper || depth0.description;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
@@ -507,20 +538,51 @@ templates['param_readonly_required'] = template(function (Handlebars,depth0,help
|
||||
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
||||
templates['param_required'] = template(function (Handlebars,depth0,helpers,partials,data) {
|
||||
helpers = helpers || Handlebars.helpers;
|
||||
var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
|
||||
var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
|
||||
|
||||
function program1(depth0,data) {
|
||||
|
||||
var buffer = "", stack1;
|
||||
buffer += "\n <input class='required' minlength='1' name='";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "' placeholder='(required)' type='text' value='";
|
||||
foundHelper = helpers.defaultValue;
|
||||
stack1 = foundHelper || depth0.defaultValue;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "'/>\n ";
|
||||
return buffer;}
|
||||
|
||||
function program3(depth0,data) {
|
||||
|
||||
var buffer = "", stack1;
|
||||
buffer += "\n <input class='required' minlength='1' name='";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "' placeholder='(required)' type='text' value=''/>\n ";
|
||||
return buffer;}
|
||||
|
||||
buffer += "<td class='code required'>";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "</td>\n<td>\n <input class='required' minlength='1' name='";
|
||||
foundHelper = helpers.name;
|
||||
stack1 = foundHelper || depth0.name;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
||||
buffer += escapeExpression(stack1) + "' placeholder='(required)' type='text' value=''/>\n</td>\n<td width='500'>\n <strong>";
|
||||
buffer += escapeExpression(stack1) + "</td>\n<td>\n ";
|
||||
foundHelper = helpers.defaultValue;
|
||||
stack1 = foundHelper || depth0.defaultValue;
|
||||
stack2 = helpers['if'];
|
||||
tmp1 = self.program(1, program1, data);
|
||||
tmp1.hash = {};
|
||||
tmp1.fn = tmp1;
|
||||
tmp1.inverse = self.program(3, program3, data);
|
||||
stack1 = stack2.call(depth0, stack1, tmp1);
|
||||
if(stack1 || stack1 === 0) { buffer += stack1; }
|
||||
buffer += "\n</td>\n<td width='500'>\n <strong>";
|
||||
foundHelper = helpers.description;
|
||||
stack1 = foundHelper || depth0.description;
|
||||
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
||||
|
||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,10 @@
|
||||
<td class='code'>{{name}}</td>
|
||||
<td>
|
||||
<input minlength='0' name='{{name}}' placeholder='' type='text' value=''/>
|
||||
{{#if defaultValue}}
|
||||
<input minlength='0' name='{{name}}' placeholder='' type='text' value='{{defaultValue}}'/>
|
||||
{{else}}
|
||||
<input minlength='0' name='{{name}}' placeholder='' type='text' value=''/>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td width='500'>{{description}}</td>
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
<td class='code required'>{{name}}</td>
|
||||
<td>
|
||||
<input class='required' minlength='1' name='{{name}}' placeholder='(required)' type='text' value=''/>
|
||||
{{#if defaultValue}}
|
||||
<input class='required' minlength='1' name='{{name}}' placeholder='(required)' type='text' value='{{defaultValue}}'/>
|
||||
{{else}}
|
||||
<input class='required' minlength='1' name='{{name}}' placeholder='(required)' type='text' value=''/>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td width='500'>
|
||||
<strong>{{description}}</strong>
|
||||
|
||||
Reference in New Issue
Block a user