openapi_first 0.13.2 → 0.14.2
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 +6 -46
- data/CHANGELOG.md +15 -1
- data/Gemfile.lock +60 -59
- data/README.md +19 -9
- data/benchmarks/Gemfile +2 -1
- data/benchmarks/Gemfile.lock +59 -59
- data/benchmarks/apps/committee.ru +14 -18
- data/benchmarks/apps/hanami_api.ru +21 -0
- data/benchmarks/apps/hanami_router.ru +1 -1
- data/benchmarks/apps/sinatra.ru +1 -1
- data/benchmarks/apps/syro.ru +3 -3
- data/benchmarks/benchmarks.rb +11 -14
- data/lib/openapi_first/app.rb +3 -5
- data/lib/openapi_first/{find_handler.rb → default_operation_resolver.rb} +5 -11
- data/lib/openapi_first/definition.rb +9 -8
- data/lib/openapi_first/operation.rb +65 -25
- data/lib/openapi_first/request_validation.rb +14 -27
- data/lib/openapi_first/responder.rb +4 -4
- data/lib/openapi_first/response_validation.rb +2 -1
- data/lib/openapi_first/router.rb +6 -4
- data/lib/openapi_first/schema_validation.rb +36 -0
- data/lib/openapi_first/utils.rb +7 -14
- data/lib/openapi_first/validation_format.rb +22 -0
- data/lib/openapi_first/version.rb +1 -1
- data/lib/openapi_first.rb +9 -4
- data/openapi_first.gemspec +4 -2
- metadata +13 -12
- 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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Haller
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deep_merge
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.2.16
|
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:
|
68
|
+
version: 0.2.16
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: multi_json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '3'
|
167
|
-
description:
|
167
|
+
description:
|
168
168
|
email:
|
169
169
|
- andreas.haller@posteo.de
|
170
170
|
executables: []
|
@@ -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
|
@@ -187,6 +186,7 @@ files:
|
|
187
186
|
- benchmarks/Gemfile.lock
|
188
187
|
- benchmarks/apps/committee.ru
|
189
188
|
- benchmarks/apps/grape.ru
|
189
|
+
- benchmarks/apps/hanami_api.ru
|
190
190
|
- benchmarks/apps/hanami_router.ru
|
191
191
|
- benchmarks/apps/openapi.yaml
|
192
192
|
- benchmarks/apps/openapi_first.ru
|
@@ -202,8 +202,8 @@ files:
|
|
202
202
|
- lib/openapi_first.rb
|
203
203
|
- lib/openapi_first/app.rb
|
204
204
|
- lib/openapi_first/coverage.rb
|
205
|
+
- lib/openapi_first/default_operation_resolver.rb
|
205
206
|
- lib/openapi_first/definition.rb
|
206
|
-
- lib/openapi_first/find_handler.rb
|
207
207
|
- lib/openapi_first/inbox.rb
|
208
208
|
- lib/openapi_first/operation.rb
|
209
209
|
- lib/openapi_first/request_validation.rb
|
@@ -213,6 +213,7 @@ files:
|
|
213
213
|
- lib/openapi_first/response_validator.rb
|
214
214
|
- lib/openapi_first/router.rb
|
215
215
|
- lib/openapi_first/router_required.rb
|
216
|
+
- lib/openapi_first/schema_validation.rb
|
216
217
|
- lib/openapi_first/utils.rb
|
217
218
|
- lib/openapi_first/validation.rb
|
218
219
|
- lib/openapi_first/validation_format.rb
|
@@ -225,7 +226,7 @@ metadata:
|
|
225
226
|
https://github.com/ahx/openapi_first: https://github.com/ahx/openapi_first
|
226
227
|
source_code_uri: https://github.com/ahx/openapi_first
|
227
228
|
changelog_uri: https://github.com/ahx/openapi_first/blob/master/CHANGELOG.md
|
228
|
-
post_install_message:
|
229
|
+
post_install_message:
|
229
230
|
rdoc_options: []
|
230
231
|
require_paths:
|
231
232
|
- lib
|
@@ -233,15 +234,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
234
|
requirements:
|
234
235
|
- - ">="
|
235
236
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
237
|
+
version: 2.6.0
|
237
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
239
|
requirements:
|
239
240
|
- - ">="
|
240
241
|
- !ruby/object:Gem::Version
|
241
242
|
version: '0'
|
242
243
|
requirements: []
|
243
|
-
rubygems_version: 3.
|
244
|
-
signing_key:
|
244
|
+
rubygems_version: 3.2.22
|
245
|
+
signing_key:
|
245
246
|
specification_version: 4
|
246
247
|
summary: Implement REST APIs based on OpenApi.
|
247
248
|
test_files: []
|