esplanade 1.8.2 → 1.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b02826c79f508f148767a4ac0179951a180e6f052096386a13c8e14016bd0100
4
- data.tar.gz: c0defe81a835016d2cf048c78a6da02be0ef96f530a3884d8728aac23e97fd66
3
+ metadata.gz: 10a587c3f5ded2906469b7896f03fac5e033bad51562df1d21bfa460d673f19d
4
+ data.tar.gz: cf71557f55154667544518a3fdd1234157313bf59958c364a2326ba0f390cdc5
5
5
  SHA512:
6
- metadata.gz: a595b208dae18ed5bf8dc466a0ba6d75506d5513df77d1d689473d81fc94f3f66cb7f5eaa75b8151e12323e62fe6f010d765ee2587488d3a396fb020e1e40a3c
7
- data.tar.gz: 987386b628058494ed6340e2e7594578af5b23ed5849c74e9e6c207a87048bff47c45b4995ea36a6df90cedf3b315c1965153b0b7e93f424fde715d1faa2b1ef
6
+ metadata.gz: c12de487a2f103bb17821b12f5fbbba7d31f3a68dee33dbd3fceef9e0283b80403700b614fdd3f17420a4eb5be5dcffd36aee15f183418868148a20e9ad80664
7
+ data.tar.gz: e68a32d904001d6b3b8fc4457142bb9cb85d617c1bb3e39d2f3bc677f5ae2d2705cd09ac858a3910b4ed0f549f89c74b613715750734c2a2ae716aa384414456
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ### 1.8.3 - 2024-12-06
4
+
5
+ * patch
6
+ * fix the non-json check of the request body if the schema is less than one
7
+ * delete homepage for fix
8
+
3
9
  ### 1.8.2 - 2024-04-03
4
10
 
5
11
  * 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/) format.
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/funbox/tomograph/tree/master#constructor-params)
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
- [![Sponsored by FunBox](https://funbox.ru/badges/sponsored_by_funbox_centered.svg)](https://funbox.ru)
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 == 1
15
+ @error ||= if @doc.json_schemas.size <= 1
16
16
  one_json_schema
17
17
  else
18
18
  more_than_one_json_schema
@@ -1,3 +1,3 @@
1
1
  module Esplanade
2
- VERSION = '1.8.2'.freeze
2
+ VERSION = '1.8.3'.freeze
3
3
  end
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.2
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-04-03 00:00:00.000000000 Z
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: https://github.com/tuwilof/esplanade
176
+ homepage:
177
177
  licenses:
178
178
  - MIT
179
179
  metadata: {}