Merge pull request #169 from martinxxD/dev-update-dependencies

Update dependencies & fix tests
This commit is contained in:
Kam Low 2018-11-28 12:00:21 +01:00 committed by GitHub
commit d227ffd3f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1967 additions and 1718 deletions

3281
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,39 +34,39 @@
},
"homepage": "https://sourcey.com/spectacle",
"dependencies": {
"bluebird": "^3.4.7",
"cheerio": "^0.19.0",
"clarify": "^1.0.5",
"bluebird": "^3.5.2",
"cheerio": "^1.0.0-rc.2",
"clarify": "^2.1.0",
"commander": "*",
"foundation-sites": "^6.4.1",
"foundation-sites": "^6.5.0-rc.4",
"grunt": "^1.0.3",
"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-connect": "^1.0.2",
"grunt-contrib-connect": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "^2.2.1",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-uglify": "^3.3.0",
"grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-jshint": "^2.0.0",
"grunt-contrib-uglify": "^4.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-contrib-handlebars": "^1.0.0",
"grunt-compile-handlebars": "^2.0.0",
"grunt-compile-handlebars": "^2.0.2",
"grunt-embed": "^0.2.1",
"grunt-prettify": "^0.4.0",
"grunt-sass": "^3.0.0",
"handlebars": "^4.0.5",
"highlight.js": "^9.1.0",
"js-yaml": "^3.8.2",
"json-refs": "^2.1.6",
"grunt-sass": "^3.0.2",
"handlebars": "^4.0.12",
"highlight.js": "^9.13.0",
"js-yaml": "^3.12.0",
"json-refs": "^3.0.12",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.2.1",
"marked": "^0.3.5",
"node-sass": "^4.9.0",
"sync-request": "^4.1.0",
"tmp": "0.0.31",
"trace": "^1.1.0"
"lodash": "^4.17.11",
"marked": "^0.5.1",
"node-sass": "^4.9.4",
"sync-request": "^6.0.0",
"tmp": "0.0.33",
"trace": "^3.1.0"
},
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^3.5.3"
"chai": "^4.2.0",
"mocha": "^5.2.0"
}
}

View File

@ -276,7 +276,10 @@
<span>application/json, application/xml</span>
</h5>
<h5>Request Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
@ -294,7 +297,8 @@
],
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -340,7 +344,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
@ -358,19 +365,24 @@
],
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(422 Unprocessable Entity)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">422</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Validation error&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese is not mouldy enough&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -446,7 +458,10 @@
<span>application/json, application/xml</span>
</h5>
<h5>Request Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
@ -464,7 +479,8 @@
],
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -510,24 +526,32 @@
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(422 Unprocessable Entity)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">422</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Validation error&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese is not mouldy enough&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -660,7 +684,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">[
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">[
{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
@ -680,19 +707,24 @@
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
]
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -814,7 +846,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
@ -832,19 +867,24 @@
],
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -977,12 +1017,16 @@
<h5>Response Example
<span>(422 Unprocessable Entity)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">422</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Validation error&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese is not mouldy enough&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1097,12 +1141,16 @@
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1235,7 +1283,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">[
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">[
{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
@ -1255,19 +1306,24 @@
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
]
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1396,7 +1452,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
@ -1414,7 +1473,8 @@
],
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1520,7 +1580,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">[
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">[
{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
@ -1540,7 +1603,8 @@
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
]
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1617,7 +1681,10 @@
<div class="doc-examples">
<section>
<h5>Request Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;cheeseId&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
<span class="hljs-attr">&quot;complete&quot;</span>: <span class="hljs-string">&quot;true&quot;</span>,
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
@ -1625,7 +1692,8 @@
<span class="hljs-attr">&quot;shipDate&quot;</span>: <span class="hljs-string">&quot;04-10-2017 00:09:21 UTC&quot;</span>,
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1671,7 +1739,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;cheeseId&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
<span class="hljs-attr">&quot;complete&quot;</span>: <span class="hljs-string">&quot;true&quot;</span>,
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
@ -1679,19 +1750,24 @@
<span class="hljs-attr">&quot;shipDate&quot;</span>: <span class="hljs-string">&quot;04-10-2017 00:09:21 UTC&quot;</span>,
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(422 Unprocessable Entity)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">422</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Validation error&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese is not mouldy enough&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1788,7 +1864,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;cheeseId&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
<span class="hljs-attr">&quot;complete&quot;</span>: <span class="hljs-string">&quot;true&quot;</span>,
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
@ -1796,19 +1875,24 @@
<span class="hljs-attr">&quot;shipDate&quot;</span>: <span class="hljs-string">&quot;04-10-2017 00:09:21 UTC&quot;</span>,
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1891,12 +1975,16 @@
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -1957,7 +2045,10 @@
<div class="doc-examples">
<section>
<h5>Request Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;gordo&quot;</span>,
<span class="hljs-attr">&quot;firstName&quot;</span>: <span class="hljs-string">&quot;Alotta&quot;</span>,
@ -1967,7 +2058,8 @@
<span class="hljs-attr">&quot;phone&quot;</span>: <span class="hljs-string">&quot;+3344556677&quot;</span>,
<span class="hljs-attr">&quot;customerStatus&quot;</span>: <span class="hljs-string">&quot;obese&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2016,7 +2108,7 @@
<div class="doc-copy">
<section class="swagger-operation-description">
<p>Create a list of customers from the given input array.</p>
<p>And here is a random inline code block:</p> <pre><code class="hljs lang-json">{
<p>And here is a random inline code block:</p> <pre><code class="hljs language-json">{
<span class="hljs-attr">"greeting"</span>: Wassup()
}
</code></pre>
@ -2042,7 +2134,10 @@
<div class="doc-examples">
<section>
<h5>Request Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">[
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">[
{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;gordo&quot;</span>,
@ -2054,7 +2149,8 @@
<span class="hljs-attr">&quot;customerStatus&quot;</span>: <span class="hljs-string">&quot;obese&quot;</span>
}
]
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2149,7 +2245,7 @@
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">200 OK</div>
<div class="prop-ref"> </div>
<div class="prop-ref"></div>
<!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->
</div>
<div class="prop-value">
@ -2187,8 +2283,12 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json"><span class="hljs-string">&quot;string&quot;</span>
</code></pre>
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json"><span class="hljs-string">&quot;string&quot;</span>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
@ -2235,12 +2335,16 @@
<h5>Response Example
<span>(422 Unprocessable Entity)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">422</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Validation error&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese is not mouldy enough&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2387,7 +2491,10 @@
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;gordo&quot;</span>,
<span class="hljs-attr">&quot;firstName&quot;</span>: <span class="hljs-string">&quot;Alotta&quot;</span>,
@ -2397,19 +2504,24 @@
<span class="hljs-attr">&quot;phone&quot;</span>: <span class="hljs-string">&quot;+3344556677&quot;</span>,
<span class="hljs-attr">&quot;customerStatus&quot;</span>: <span class="hljs-string">&quot;obese&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
<section>
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2481,7 +2593,10 @@
<div class="doc-examples">
<section>
<h5>Request Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;gordo&quot;</span>,
<span class="hljs-attr">&quot;firstName&quot;</span>: <span class="hljs-string">&quot;Alotta&quot;</span>,
@ -2491,7 +2606,8 @@
<span class="hljs-attr">&quot;phone&quot;</span>: <span class="hljs-string">&quot;+3344556677&quot;</span>,
<span class="hljs-attr">&quot;customerStatus&quot;</span>: <span class="hljs-string">&quot;obese&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2531,12 +2647,16 @@
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2626,12 +2746,16 @@
<h5>Response Example
<span>(404 Not Found)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2641,8 +2765,7 @@
<div id="definition-Order" class="definition panel" data-traverse-target="definition-Order">
<h2 class="panel-title">
<a name="/definitions/Order"></a>Order: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -2701,7 +2824,10 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;cheeseId&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
<span class="hljs-attr">&quot;complete&quot;</span>: <span class="hljs-string">&quot;true&quot;</span>,
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-string">&quot;1&quot;</span>,
@ -2709,7 +2835,8 @@
<span class="hljs-attr">&quot;shipDate&quot;</span>: <span class="hljs-string">&quot;04-10-2017 00:09:21 UTC&quot;</span>,
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2718,8 +2845,7 @@
<div id="definition-Category" class="definition panel" data-traverse-target="definition-Category">
<h2 class="panel-title">
<a name="/definitions/Category"></a>Category: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -2746,11 +2872,15 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;Italian Cheese&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2759,8 +2889,7 @@
<div id="definition-Customer" class="definition panel" data-traverse-target="definition-Customer">
<h2 class="panel-title">
<a name="/definitions/Customer"></a>Customer: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -2832,7 +2961,10 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;gordo&quot;</span>,
<span class="hljs-attr">&quot;firstName&quot;</span>: <span class="hljs-string">&quot;Alotta&quot;</span>,
@ -2842,7 +2974,8 @@
<span class="hljs-attr">&quot;phone&quot;</span>: <span class="hljs-string">&quot;+3344556677&quot;</span>,
<span class="hljs-attr">&quot;customerStatus&quot;</span>: <span class="hljs-string">&quot;obese&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2851,8 +2984,7 @@
<div id="definition-Error" class="definition panel" data-traverse-target="definition-Error">
<h2 class="panel-title">
<a name="/definitions/Error"></a>Error: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -2884,12 +3016,16 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-string">&quot;integer (int32)&quot;</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;No cheese found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;No cheese for you!&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2898,8 +3034,7 @@
<div id="definition-ValidationError" class="definition panel" data-traverse-target="definition-ValidationError">
<h2 class="panel-title">
<a name="/definitions/ValidationError"></a>ValidationError: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -2931,12 +3066,16 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">422</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Validation error&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese is not mouldy enough&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2945,8 +3084,7 @@
<div id="definition-NotFoundError" class="definition panel" data-traverse-target="definition-NotFoundError">
<h2 class="panel-title">
<a name="/definitions/NotFoundError"></a>NotFoundError: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -2978,12 +3116,16 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;code&quot;</span>: <span class="hljs-number">404</span>,
<span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;Not found&quot;</span>,
<span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;Your cheese has already been eaten&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -2992,8 +3134,7 @@
<div id="definition-Cheese" class="definition panel" data-traverse-target="definition-Cheese">
<h2 class="panel-title">
<a name="/definitions/Cheese"></a>Cheese: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -3076,7 +3217,10 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">&quot;category&quot;</span>: {
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-number">1</span>,
@ -3094,7 +3238,8 @@
],
<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;available&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>
@ -3103,8 +3248,7 @@
<div id="definition-tag.yml--Tag" class="definition panel" data-traverse-target="definition-tag.yml--Tag">
<h2 class="panel-title">
<a name="/definitions/tag.yml#/Tag"></a>tag.yml#/Tag: object
<!-- <span class="json-property-type">
<span class="json-property-type">object</span>
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
@ -3131,11 +3275,15 @@
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<!-- <div class="hljs"> -->
<html>
<head></head>
<body><pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;id&quot;</span>: <span class="hljs-string">&quot;integer (int64)&quot;</span>,
<span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
}
</code></pre>
</code></pre> </body>
</html>
<!-- </div> -->
</section>
</div>

View File

@ -33,7 +33,7 @@ describe("preprocessor referencing", function() {
it("should include the path section", function() {
processed.paths.should.have.property("/");
processed.paths["/"].should.be.an.object;
processed.paths["/"].should.be.an('object');
});
it("should include the imported paths", function() {
@ -87,7 +87,7 @@ describe("preprocessor referencing", function() {
it("should include the definition globally", function() {
processed.should.have.property("definitions");
processed.definitions.should.be.an.object;
processed.definitions.should.be.an('object');
processed.definitions.should.have.property("fixtures/User.yml");
var schema = processed.definitions["fixtures/User.yml"];
schema.should.have.property("x-external", "fixtures/User.yml");

View File

@ -54,13 +54,13 @@ describe("resolve-references.js", function() {
it("should read JSON files", function() {
var out = res.fetchReference(__dirname+"/fixtures/document.json");
out.should.be.an.object;
out.should.be.an('object');
out.should.have.property("foo", 1);
});
it("should read YAML files", function() {
var out = res.fetchReference(__dirname+"/fixtures/document.yml");
out.should.be.an.object;
out.should.be.an('object');
out.should.have.property("foo", 1);
});
@ -76,7 +76,7 @@ describe("resolve-references.js", function() {
function remote(type, url) {
it("can fetch "+type, function() {
var out = res.fetchReference(url);
out.should.be.an.object;
out.should.be.an('object');
out.should.have.property("foo", 1);
});
}
@ -212,7 +212,7 @@ describe("resolve-references.js", function() {
res.replaceReference(cwd, top, top.info, "info");
top.info.should.not.have.property("$ref");
top.info.should.have.property("document");
top.info.document.should.be.an.object;
top.info.document.should.be.an('object');
top.info.document.should.have.property("foo", 1);
});
@ -241,12 +241,12 @@ describe("resolve-references.js", function() {
top["x-spec-path"] = cwd + "/test.json";
res.replaceReference(cwd, top, top.paths["/"], "paths/%2F/");
top.should.have.property("tags");
top.tags.should.be.an.array;
top.tags.should.be.an('array');
top.tags.length.should.equal(1);
var tag = top.tags[0];
tag.should.have.property("name", "default");
tag.should.have.property("operations");
tag.operations.should.be.an.array;
tag.operations.should.be.an('array');
tag.operations.should.include(top.paths["/"].get);
tag.operations.should.include(top.paths["/"].post);
});
@ -277,7 +277,7 @@ describe("resolve-references.js", function() {
res.replaceRefs(cwd, top, top, "");
top.info.should.not.have.property("$ref");
top.info.should.have.property("document");
top.info.document.should.be.an.object;
top.info.document.should.be.an('object');
top.info.document.should.have.property("foo", 1);
});