Skip to content

Commit b224474

Browse files
bshamblenwing328
authored andcommitted
Fixes #4481 (#4493)
1 parent 6a080d3 commit b224474

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222

223223
<div class="tab-content">
224224
<div class="tab-pane active" id="examples-{{baseName}}-{{nickname}}-0-curl">
225-
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">{{httpMethod}}</span>{{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}} -H "{{keyParamName}}: [[apiKey]]" {{/isKeyInHeader}}{{/isApiKey}}{{#isBasic}} -H "Authorization: Basic [[basicHash]]" {{/isBasic}}{{/authMethods}} "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{paramName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"</code></pre>
225+
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">{{httpMethod}}</span>{{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}} -H "{{keyParamName}}: [[apiKey]]"{{/isKeyInHeader}}{{/isApiKey}}{{#isBasic}}{{#hasProduces}} -H "Accept: {{#produces}}{{{mediaType}}}{{#hasMore}},{{/hasMore}}{{/produces}}"{{/hasProduces}}{{#hasConsumes}} -H "Content-Type: {{#consumes}}{{{mediaType}}}{{#hasMore}},{{/hasMore}}{{/consumes}}"{{/hasConsumes}} -H "Authorization: Basic [[basicHash]]"{{/isBasic}}{{/authMethods}} "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{paramName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"</code></pre>
226226
</div>
227227
<div class="tab-pane" id="examples-{{baseName}}-{{nickname}}-0-java">
228228
<pre class="prettyprint"><code class="language-java">{{>sample_java}}</code></pre>

samples/html2/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ <h3>Usage and SDK Samples</h3>
21282128

21292129
<div class="tab-content">
21302130
<div class="tab-pane active" id="examples-Pet-getPetById-0-curl">
2131-
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
2131+
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
21322132
</div>
21332133
<div class="tab-pane" id="examples-Pet-getPetById-0-java">
21342134
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@@ -3140,7 +3140,7 @@ <h3>Usage and SDK Samples</h3>
31403140
var apiInstance = new PetApi();
31413141
var petId = 789; // Long | ID of pet to update
31423142
var additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server (optional)
3143-
var file = /path/to/file.txt; // File | file to upload (optional)
3143+
var file = new File(); // File | file to upload (optional)
31443144

31453145
try
31463146
{
@@ -3531,7 +3531,7 @@ <h2>Parameters</h2>
35313531
"description" : "ID of the order that needs to be deleted",
35323532
"required" : true,
35333533
"type" : "string",
3534-
"minimum" : 1.0
3534+
"minimum" : 1
35353535
};
35363536
var schema = schemaWrapper;
35373537

@@ -3597,7 +3597,7 @@ <h3>Usage and SDK Samples</h3>
35973597

35983598
<div class="tab-content">
35993599
<div class="tab-pane active" id="examples-Store-getInventory-0-curl">
3600-
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/store/inventory"</code></pre>
3600+
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/store/inventory"</code></pre>
36013601
</div>
36023602
<div class="tab-pane" id="examples-Store-getInventory-0-java">
36033603
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@@ -4005,8 +4005,8 @@ <h2>Parameters</h2>
40054005
"description" : "ID of pet that needs to be fetched",
40064006
"required" : true,
40074007
"type" : "integer",
4008-
"maximum" : 5.0,
4009-
"minimum" : 1.0,
4008+
"maximum" : 5,
4009+
"minimum" : 1,
40104010
"format" : "int64"
40114011
};
40124012
var schema = schemaWrapper;
@@ -6303,7 +6303,7 @@ <h3> Status: 404 - User not found </h3>
63036303
</div>
63046304
<div id="generator">
63056305
<div class="content">
6306-
Generated 2016-12-16T18:07:47.864+08:00
6306+
Generated 2017-01-03T10:36:42.650-08:00
63076307
</div>
63086308
</div>
63096309
</div>

0 commit comments

Comments
 (0)