Skip to content

Commit

Permalink
html: fix typo in class name (#7818)
Browse files Browse the repository at this point in the history
* html: fix typo in class name

* Update "html" samples
  • Loading branch information
jmini authored and wing328 committed Mar 12, 2018
1 parent e7f4fb3 commit 25a6a9d
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{{#hasConsumes}}
<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="heaader">Content-Type</span> request header:
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
{{#consumes}}
<li><code>{{{mediaType}}}</code></li>
Expand Down Expand Up @@ -122,7 +122,7 @@
{{#hasProduces}}
<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
{{#produces}}
<li><code>{{{mediaType}}}</code></li>
Expand Down
2 changes: 1 addition & 1 deletion samples/html.md/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3-SNAPSHOT
2.4.0-SNAPSHOT
2 changes: 1 addition & 1 deletion samples/html/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3-SNAPSHOT
2.4.0-SNAPSHOT
129 changes: 85 additions & 44 deletions samples/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@
<body>
<h1>Swagger Petstore</h1>
<div class="app-desc">This is a sample server Petstore server. You can find out more about Swagger at <a href="http://swagger.io">http://swagger.io</a> or on <a href="http://swagger.io/irc/">irc.freenode.net, #swagger</a>. For this sample, you can use the api key <code>special-key</code> to test the authorization filters.</div>
<div class="app-desc">More information: <a href=""></a></div>
<div class="app-desc">More information: <a href="https://helloreverb.com">https://helloreverb.com</a></div>
<div class="app-desc">Contact Info: <a href="apiteam@swagger.io">apiteam@swagger.io</a></div>
<div class="app-desc">Version: 1.0.0</div>
<div class="app-desc">BasePath:/v2</div>
<div class="license-info">Apache 2.0</div>
<div class="license-info">Apache-2.0</div>
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div>
<h2>Access</h2>
<ol>
Expand Down Expand Up @@ -238,7 +238,7 @@ <h1><a name="Pet">Pet</a></h1>


<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="heaader">Content-Type</span> request header:
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>application/json</code></li>
<li><code>application/xml</code></li>
Expand All @@ -261,7 +261,7 @@ <h3 class="field-label">Request body</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -302,7 +302,7 @@ <h3 class="field-label">Request headers</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -356,23 +356,42 @@ <h3 class="field-label">Example data</h3>
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>[ {
"photoUrls" : [ "aeiou" ],
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "aeiou",
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "aeiou",
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
} ]</code></pre>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -429,23 +448,42 @@ <h3 class="field-label">Example data</h3>
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>[ {
"photoUrls" : [ "aeiou" ],
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "aeiou",
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "aeiou",
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
} ]</code></pre>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -502,23 +540,26 @@ <h3 class="field-label">Example data</h3>
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>{
"photoUrls" : [ "aeiou" ],
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "aeiou",
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "aeiou",
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}</code></pre>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand All @@ -545,7 +586,7 @@ <h4 class="field-label">404</h4>


<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="heaader">Content-Type</span> request header:
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>application/json</code></li>
<li><code>application/xml</code></li>
Expand All @@ -568,7 +609,7 @@ <h3 class="field-label">Request body</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -601,7 +642,7 @@ <h3 class="field-label">Path parameters</h3>
</div> <!-- field-items -->

<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="heaader">Content-Type</span> request header:
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>application/x-www-form-urlencoded</code></li>
</ul>
Expand All @@ -624,7 +665,7 @@ <h3 class="field-label">Form parameters</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand All @@ -651,7 +692,7 @@ <h3 class="field-label">Path parameters</h3>
</div> <!-- field-items -->

<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="heaader">Content-Type</span> request header:
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>multipart/form-data</code></li>
</ul>
Expand Down Expand Up @@ -680,13 +721,13 @@ <h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>{
"code" : 0,
"type" : "aeiou",
"message" : "aeiou"
"type" : "type",
"message" : "message"
}</code></pre>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/json</code></li>
</ul>
Expand Down Expand Up @@ -723,7 +764,7 @@ <h3 class="field-label">Path parameters</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -767,7 +808,7 @@ <h3 class="field-label">Example data</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/json</code></li>
</ul>
Expand Down Expand Up @@ -828,7 +869,7 @@ <h3 class="field-label">Example data</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -897,7 +938,7 @@ <h3 class="field-label">Example data</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -939,7 +980,7 @@ <h3 class="field-label">Request body</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -977,7 +1018,7 @@ <h3 class="field-label">Request body</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -1015,7 +1056,7 @@ <h3 class="field-label">Request body</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -1052,7 +1093,7 @@ <h3 class="field-label">Path parameters</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -1109,19 +1150,19 @@ <h3 class="field-label">Example data</h3>
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>{
"firstName" : "aeiou",
"lastName" : "aeiou",
"password" : "aeiou",
"firstName" : "firstName",
"lastName" : "lastName",
"password" : "password",
"userStatus" : 6,
"phone" : "aeiou",
"phone" : "phone",
"id" : 0,
"email" : "aeiou",
"username" : "aeiou"
"email" : "email",
"username" : "username"
}</code></pre>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -1173,11 +1214,11 @@ <h3 class="field-label">Example data</h3>
<pre class="example"><code>aeiou</code></pre>
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>"aeiou"</code></pre>
<pre class="example"><code>""</code></pre>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -1211,7 +1252,7 @@ <h4 class="field-label">400</h4>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down Expand Up @@ -1255,7 +1296,7 @@ <h3 class="field-label">Request body</h3>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="heaader">Content-Type</span> response header.
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/xml</code></li>
<li><code>application/json</code></li>
Expand Down

0 comments on commit 25a6a9d

Please sign in to comment.