Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 7fb2471

Browse files
Merge pull request #1660 from apiaryio/deps/gavel-9
chore(deps): bumps "gavel" to "9.1.1"
2 parents f5a79df + a3ea2f0 commit 7fb2471

File tree

6 files changed

+27
-23
lines changed

6 files changed

+27
-23
lines changed

docs/_links.rst

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
.. JSON Schema
2020
2121
.. _JSON Schema: https://json-schema.org
22-
.. _JSON Schema Draft 3: https://tools.ietf.org/html/draft-zyp-json-schema-03
2322
.. _JSON Schema Draft 4: https://tools.ietf.org/html/draft-zyp-json-schema-04
2423
.. _JSON Schema Draft 5: https://tools.ietf.org/html/draft-wright-json-schema-00
2524
.. _JSON Schema Draft 6: https://tools.ietf.org/html/draft-wright-json-schema-01

docs/how-it-works.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ To validate the structure Dredd uses `JSON Schema`_ inferred from the API descri
100100
API Blueprint
101101
^^^^^^^^^^^^^
102102

103-
1. :apib:`Schema <def-schema-section>` section - provided custom JSON Schema (`Draft 4 <JSON Schema Draft 4_>`__, `Draft 3 <JSON Schema Draft 3_>`__, `Draft 6 <JSON Schema Draft 6_>`__, and `Draft 7 <JSON Schema Draft 7_>`__) will be used.
103+
1. :apib:`Schema <def-schema-section>` section - provided custom JSON Schema (`Draft 4 <JSON Schema Draft 4_>`__, `Draft 6 <JSON Schema Draft 6_>`__, and `Draft 7 <JSON Schema Draft 7_>`__) will be used.
104104
2. :apib:`Attributes <def-attributes-section>` section with data structure description in `MSON`_ - API Blueprint parser automatically generates JSON Schema from MSON.
105105
3. :apib:`Body <def-body-section>` section with sample JSON payload - `Gavel`_, which is responsible for validation in Dredd, automatically infers some basic expectations described below.
106106

packages/dredd/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"clone": "2.1.2",
4040
"cross-spawn": "7.0.0",
4141
"dredd-transactions": "9.1.1",
42-
"gavel": "^8.2.0",
42+
"gavel": "^9.1.1",
4343
"glob": "7.1.5",
4444
"html": "1.0.0",
4545
"htmlencode": "0.0.4",

packages/dredd/test/fixtures/schema.apib

+4-6
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,17 @@ Demonstrates dredd schema test issue [#46](https://github.com/apiaryio/dredd/iss
2323

2424
{
2525
"type":"object",
26-
"required":true,
26+
"required":["data"],
2727
"properties":{
2828
"data": {
2929
"type":"object",
30-
"required":true,
30+
"required":["expires","token"],
3131
"properties":{
3232
"expires": {
33-
"type":"number",
34-
"required":true
33+
"type":"number"
3534
},
3635
"token": {
37-
"type":"string",
38-
"required":true
36+
"type":"string"
3937
}
4038
}
4139
}

packages/dredd/test/integration/cli/hookfiles-cli-test.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,9 @@ describe('CLI', () => {
800800
})
801801
})
802802

803-
it('exit status should be 0 (success)', () =>
804-
assert.equal(runtimeInfo.dredd.exitStatus, 0))
803+
it('exit status should be 0 (success)', () => {
804+
assert.equal(runtimeInfo.dredd.exitStatus, 0)
805+
})
805806
})
806807

807808
describe('and server is NOT responding in accordance with the schema', () => {

yarn.lock

+18-12
Original file line numberDiff line numberDiff line change
@@ -1154,11 +1154,6 @@ [email protected], ajv@^6.10.0, ajv@^6.10.2, ajv@^6.5.5:
11541154
json-schema-traverse "^0.4.1"
11551155
uri-js "^4.2.2"
11561156

1157-
1158-
version "1.0.1"
1159-
resolved "https://registry.yarnpkg.com/amanda/-/amanda-1.0.1.tgz#0929f3ce0dcd4a74d28d054e2b2e712cbc8ce582"
1160-
integrity sha512-DJZMA1t7skqQgH5yq4NxBfqun+jDQUSYJRYGg+AqnKc3I0/hs8eX3PDdlfgiADkHgo4HlesD5QuoqFcCYA280Q==
1161-
11621157
11631158
version "3.2.3"
11641159
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.3.tgz#57d35b8686e851e2cc04c403f1c00203976a1813"
@@ -2233,7 +2228,19 @@ deep-eql@^3.0.1:
22332228
dependencies:
22342229
type-detect "^4.0.0"
22352230

2236-
[email protected], deep-equal@^1.0.0:
2231+
2232+
version "1.1.1"
2233+
resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a"
2234+
integrity sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==
2235+
dependencies:
2236+
is-arguments "^1.0.4"
2237+
is-date-object "^1.0.1"
2238+
is-regex "^1.0.4"
2239+
object-is "^1.0.1"
2240+
object-keys "^1.1.1"
2241+
regexp.prototype.flags "^1.2.0"
2242+
2243+
deep-equal@^1.0.0:
22372244
version "1.1.0"
22382245
resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.0.tgz#3103cdf8ab6d32cf4a8df7865458f2b8d33f3745"
22392246
integrity sha512-ZbfWJq/wN1Z273o7mUSjILYqehAktR2NVoSrOukDkU9kg2v/Uv89yU4Cvz8seJeAmtN5oqiefKq8FPuXOboqLw==
@@ -3145,19 +3152,18 @@ gauge@~2.7.3:
31453152
strip-ansi "^3.0.1"
31463153
wide-align "^1.1.0"
31473154

3148-
gavel@^8.2.0:
3149-
version "8.2.0"
3150-
resolved "https://registry.yarnpkg.com/gavel/-/gavel-8.2.0.tgz#404f016cf123ac403e7ebc895b72cbc80d3abb47"
3151-
integrity sha512-vzdyl98UO5TXJ9wytocbLq56AlG21lAUJgKIXTMN+UZnZcEpX5vMXw7Lbxs2gfdm/iz3U0M+vUWjl/N2mqgoMA==
3155+
gavel@^9.1.1:
3156+
version "9.1.1"
3157+
resolved "https://registry.yarnpkg.com/gavel/-/gavel-9.1.1.tgz#4107fa9a21b78ef6d9ee0e6381030829620986f6"
3158+
integrity sha512-cCNY+LzQsW5uFLUABFreV+7lI8R/6FGpMpKl7eY/SltlDYU1Mdg+xFHgYITX4f1tgJJ8g07yVHW8jGao7IHlUg==
31523159
dependencies:
31533160
ajv "6.10.2"
3154-
amanda "1.0.1"
31553161
caseless "0.12.0"
31563162
clone "2.1.2"
31573163
commander "3.0.2"
31583164
content-type "1.0.4"
31593165
curl-trace-parser "0.0.10"
3160-
deep-equal "1.1.0"
3166+
deep-equal "1.1.1"
31613167
http-string-parser "0.0.6"
31623168
json-pointer "0.6.0"
31633169
media-typer "1.1.0"

0 commit comments

Comments
 (0)