openapi_first 0.13.3 → 0.14.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 +4 -4
- data/.rubocop.yml +3 -2
- data/CHANGELOG.md +41 -1
- data/Gemfile.lock +46 -73
- data/README.md +16 -8
- data/benchmarks/Gemfile.lock +51 -69
- data/benchmarks/apps/committee.ru +3 -1
- data/benchmarks/apps/committee_with_response_validation.ru +29 -0
- data/benchmarks/apps/committee_with_sinatra.ru +31 -0
- data/benchmarks/apps/openapi.yaml +14 -14
- data/benchmarks/apps/openapi_first_with_hanami_api.ru +26 -0
- data/benchmarks/apps/openapi_first_with_response_validation.ru +22 -0
- data/benchmarks/benchmarks.rb +11 -14
- data/lib/openapi_first/app.rb +3 -6
- data/lib/openapi_first/{find_handler.rb → default_operation_resolver.rb} +5 -11
- data/lib/openapi_first/definition.rb +8 -3
- data/lib/openapi_first/operation.rb +43 -19
- data/lib/openapi_first/request_validation.rb +4 -3
- data/lib/openapi_first/responder.rb +5 -4
- data/lib/openapi_first/response_object.rb +0 -1
- data/lib/openapi_first/response_validation.rb +1 -2
- data/lib/openapi_first/response_validator.rb +1 -3
- data/lib/openapi_first/router.rb +5 -3
- data/lib/openapi_first/validation_format.rb +5 -0
- data/lib/openapi_first/version.rb +1 -1
- data/lib/openapi_first.rb +22 -15
- data/openapi_first.gemspec +6 -3
- metadata +22 -21
- data/.travis.yml +0 -8
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.
|
4
|
+
version: 0.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Haller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deep_merge
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0.
|
33
|
+
version: 2.0.alpha4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.0.
|
40
|
+
version: 2.0.alpha4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hanami-utils
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,47 +53,47 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.0.alpha1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: json_refs
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.1.7
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.1.7
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: json_schemer
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.2.16
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.2.16
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: multi_json
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '1.14'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '1.14'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rack
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,7 +176,6 @@ files:
|
|
176
176
|
- ".gitignore"
|
177
177
|
- ".rspec"
|
178
178
|
- ".rubocop.yml"
|
179
|
-
- ".travis.yml"
|
180
179
|
- CHANGELOG.md
|
181
180
|
- Gemfile
|
182
181
|
- Gemfile.lock
|
@@ -186,11 +185,15 @@ files:
|
|
186
185
|
- benchmarks/Gemfile
|
187
186
|
- benchmarks/Gemfile.lock
|
188
187
|
- benchmarks/apps/committee.ru
|
188
|
+
- benchmarks/apps/committee_with_response_validation.ru
|
189
|
+
- benchmarks/apps/committee_with_sinatra.ru
|
189
190
|
- benchmarks/apps/grape.ru
|
190
191
|
- benchmarks/apps/hanami_api.ru
|
191
192
|
- benchmarks/apps/hanami_router.ru
|
192
193
|
- benchmarks/apps/openapi.yaml
|
193
194
|
- benchmarks/apps/openapi_first.ru
|
195
|
+
- benchmarks/apps/openapi_first_with_hanami_api.ru
|
196
|
+
- benchmarks/apps/openapi_first_with_response_validation.ru
|
194
197
|
- benchmarks/apps/sinatra.ru
|
195
198
|
- benchmarks/apps/syro.ru
|
196
199
|
- benchmarks/benchmarks.rb
|
@@ -203,8 +206,8 @@ files:
|
|
203
206
|
- lib/openapi_first.rb
|
204
207
|
- lib/openapi_first/app.rb
|
205
208
|
- lib/openapi_first/coverage.rb
|
209
|
+
- lib/openapi_first/default_operation_resolver.rb
|
206
210
|
- lib/openapi_first/definition.rb
|
207
|
-
- lib/openapi_first/find_handler.rb
|
208
211
|
- lib/openapi_first/inbox.rb
|
209
212
|
- lib/openapi_first/operation.rb
|
210
213
|
- lib/openapi_first/request_validation.rb
|
@@ -224,9 +227,7 @@ homepage: https://github.com/ahx/openapi_first
|
|
224
227
|
licenses:
|
225
228
|
- MIT
|
226
229
|
metadata:
|
227
|
-
|
228
|
-
source_code_uri: https://github.com/ahx/openapi_first
|
229
|
-
changelog_uri: https://github.com/ahx/openapi_first/blob/master/CHANGELOG.md
|
230
|
+
rubygems_mfa_required: 'true'
|
230
231
|
post_install_message:
|
231
232
|
rdoc_options: []
|
232
233
|
require_paths:
|
@@ -242,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
243
|
- !ruby/object:Gem::Version
|
243
244
|
version: '0'
|
244
245
|
requirements: []
|
245
|
-
rubygems_version: 3.
|
246
|
+
rubygems_version: 3.2.22
|
246
247
|
signing_key:
|
247
248
|
specification_version: 4
|
248
249
|
summary: Implement REST APIs based on OpenApi.
|