committee 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be1585b55c1dafdac14680670df3b8a25797c934dc7bbc8f37da20d1d36115dc
|
|
4
|
+
data.tar.gz: 4e1e8ccf4c4c5fc2a59d9b34cf5b7080b971536c2319ad153293d5b2794f1b70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5316997b460f9e3caf062932702c80108d669f9ba9aa125acb87f356c4208a57856e074aea64f6e219978f0ecaac9cebc2043f0c0cc99fd5a4b2636086001360
|
|
7
|
+
data.tar.gz: 99335b314f5f6083b1078446f0984d53b96f27726246db430b28e8ba06104be97de8a67aef6e51b32c36db08ab6e1bbf3616f89bec554b08519a6ec5337b8ddc
|
|
@@ -18,6 +18,8 @@ module Committee
|
|
|
18
18
|
return {} unless options.coerce_value
|
|
19
19
|
|
|
20
20
|
request_operation.validate_path_params(options)
|
|
21
|
+
rescue OpenAPIParser::NotExistRequiredKey => e
|
|
22
|
+
raise Committee::InvalidRequest.new(e.message)
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
# @param [Boolean] strict when not content_type or status code definition, raise error
|
|
@@ -312,6 +312,16 @@ describe Committee::Middleware::RequestValidation do
|
|
|
312
312
|
assert_equal 404, last_response.status
|
|
313
313
|
end
|
|
314
314
|
|
|
315
|
+
it "OpenAPI3 parser not exist required key" do
|
|
316
|
+
@app = new_rack_app(raise: true, schema: open_api_3_schema)
|
|
317
|
+
|
|
318
|
+
e = assert_raises(Committee::InvalidRequest) do
|
|
319
|
+
get "/validate", nil
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
assert_match(/required parameters query_string not exist in/i, e.message)
|
|
323
|
+
end
|
|
324
|
+
|
|
315
325
|
it "optionally raises an error" do
|
|
316
326
|
@app = new_rack_app(raise: true, schema: open_api_3_schema)
|
|
317
327
|
header "Content-Type", "application/json"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: committee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandur
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2019-
|
|
13
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: json_schema
|