esplanade 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -3
- data/esplanade.gemspec +0 -1
- data/lib/esplanade/request/validation.rb +1 -1
- data/lib/esplanade/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10a587c3f5ded2906469b7896f03fac5e033bad51562df1d21bfa460d673f19d
|
4
|
+
data.tar.gz: cf71557f55154667544518a3fdd1234157313bf59958c364a2326ba0f390cdc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c12de487a2f103bb17821b12f5fbbba7d31f3a68dee33dbd3fceef9e0283b80403700b614fdd3f17420a4eb5be5dcffd36aee15f183418868148a20e9ad80664
|
7
|
+
data.tar.gz: e68a32d904001d6b3b8fc4457142bb9cb85d617c1bb3e39d2f3bc677f5ae2d2705cd09ac858a3910b4ed0f549f89c74b613715750734c2a2ae716aa384414456
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Esplanade
|
2
2
|
|
3
3
|
This gem helps you to validate and synchronize your API in strict accordance to the documentation in
|
4
|
-
[API Blueprint](https://apiblueprint.org/)
|
4
|
+
[API Blueprint](https://apiblueprint.org/) and [OpenAPI](https://www.openapis.org/) formats.
|
5
5
|
To do this it automatically searches received requests and responses in the documentation and run
|
6
6
|
JSON-schemas validators.
|
7
7
|
|
@@ -217,10 +217,10 @@ Error message format:
|
|
217
217
|
|
218
218
|
## Middleware args
|
219
219
|
|
220
|
-
Support any [tomograph constructor-params](https://github.com/
|
220
|
+
Support any [tomograph constructor-params](https://github.com/tuwilof/tomograph/tree/master#constructor-params)
|
221
221
|
|
222
222
|
## License
|
223
223
|
|
224
224
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
225
225
|
|
226
|
-
[
|
226
|
+
[Sponsored by FunBox](https://funbox.ru)
|
data/esplanade.gemspec
CHANGED
@@ -9,7 +9,6 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ['d.efimov@fun-box.ru']
|
10
10
|
|
11
11
|
spec.summary = 'Validate requests and responses against API Blueprint specifications'
|
12
|
-
spec.homepage = 'https://github.com/tuwilof/esplanade'
|
13
12
|
spec.license = 'MIT'
|
14
13
|
|
15
14
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -12,7 +12,7 @@ module Esplanade
|
|
12
12
|
def valid!
|
13
13
|
raise ContentTypeIsNotJson.new(**mini_message) unless @doc.content_type == 'application/json'
|
14
14
|
|
15
|
-
@error ||= if @doc.json_schemas.size
|
15
|
+
@error ||= if @doc.json_schemas.size <= 1
|
16
16
|
one_json_schema
|
17
17
|
else
|
18
18
|
more_than_one_json_schema
|
data/lib/esplanade/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esplanade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- d.efimov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|
@@ -173,7 +173,7 @@ files:
|
|
173
173
|
- lib/esplanade/response/raw/body.rb
|
174
174
|
- lib/esplanade/response/validation.rb
|
175
175
|
- lib/esplanade/version.rb
|
176
|
-
homepage:
|
176
|
+
homepage:
|
177
177
|
licenses:
|
178
178
|
- MIT
|
179
179
|
metadata: {}
|