openapi_first 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/openapi_first/request_body_validation.rb +2 -1
- data/lib/openapi_first/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 587fc0801a17d65a320a6eb56afbcbda34a3861b7098435a6f1f3bdbd83bee65
|
4
|
+
data.tar.gz: 78d32f17e40e2a489729989c6008e079d29942ca9a440bf90d5463fc4b0829a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45cc9e17bb4876e263ef37bc9f7b0023289da1638b989777dbff09ba1ef88f8521541a4a4a29a81c0e6b7ee46ba4f247a9bdff92d0ca86f767995af37462cffa
|
7
|
+
data.tar.gz: 397633c21c2c24a86193ee25e7732fe839d74b318a0e76094aad787eb37e9232a4c4495f73a1b006ca42d95d3ddc76eca74b5a9623af9d533070c4b7a08e7f90
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -19,8 +19,9 @@ module OpenapiFirst
|
|
19
19
|
return @app.call(env) unless operation&.request_body
|
20
20
|
|
21
21
|
req = Rack::Request.new(env)
|
22
|
+
body = req.body.read
|
23
|
+
req.body.rewind
|
22
24
|
content_type = req.content_type
|
23
|
-
body = req.body
|
24
25
|
catch(:halt) do
|
25
26
|
validate_request_content_type!(content_type, operation)
|
26
27
|
validate_request_body_presence!(env, body, operation)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openapi_first
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Haller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_schemer
|