esplanade 1.8.2 → 1.8.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 +11 -0
- data/README.md +3 -3
- data/esplanade.gemspec +2 -3
- data/lib/esplanade/request/validation.rb +1 -1
- data/lib/esplanade/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab3184baaf02cc9322d85d7c70cdda617d0050d44737328bd645154cfc6e80d
|
4
|
+
data.tar.gz: c823268e5f9a2812753741f4fa26d2283e0d5d854bb599db7698676e90cf1b72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7815ecf722557b4b09ca29cc7ce3a38ff07293810df71f90c21756b2d35d42db52004d505dd1b3ae58eec6b1697d118561bdb98587d6a01c25eda65fa1db21d4
|
7
|
+
data.tar.gz: 8ad7f9830f28ffcd34a2c3d67a8b29dae3e04964030eee41bda6cb6e888854d3cf4a98e7aa5e8a7d20a4e5a1d093748238318cf1f473cc1dde5bada9ca623ba3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
### 1.8.4 - 2024-12-06
|
4
|
+
|
5
|
+
* patch
|
6
|
+
* fix email and author
|
7
|
+
|
8
|
+
### 1.8.3 - 2024-12-06
|
9
|
+
|
10
|
+
* patch
|
11
|
+
* fix the non-json check of the request body if the schema is less than one
|
12
|
+
* delete homepage for fix
|
13
|
+
|
3
14
|
### 1.8.2 - 2024-04-03
|
4
15
|
|
5
16
|
* patch
|
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
@@ -5,11 +5,10 @@ require 'esplanade/version'
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'esplanade'
|
7
7
|
spec.version = Esplanade::VERSION
|
8
|
-
spec.authors = ['
|
9
|
-
spec.email = ['
|
8
|
+
spec.authors = ['tuwilof']
|
9
|
+
spec.email = ['tuwilof@gmail.com']
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- tuwilof
|
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
|
@@ -134,7 +134,7 @@ dependencies:
|
|
134
134
|
version: '0.21'
|
135
135
|
description:
|
136
136
|
email:
|
137
|
-
-
|
137
|
+
- tuwilof@gmail.com
|
138
138
|
executables: []
|
139
139
|
extensions: []
|
140
140
|
extra_rdoc_files: []
|
@@ -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: {}
|