rails-param-validation 0.4.11 → 0.4.12

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: 03afb2f7dae8d957fa9081d67451746f907a34e3a0cf19f02327c6e0d53e1a2c
4
- data.tar.gz: 7ee1ce7f02547ce4580ade8081c9347824c7bc2ea63dc956e449a0a777291700
3
+ metadata.gz: 61bc0afb5dba4401d6afa3f851416b53bed20ebde9c62fd89493da840fd82157
4
+ data.tar.gz: a517bcab6f56b5e1c70884f126dcd91170b34bd503705ad8003c335a44ae5b7f
5
5
  SHA512:
6
- metadata.gz: 8adb46a6ff77b010065fc54f9b28439aba097db32306e24ddc62e433319659edc12492f13efe514aee68e7640f7546385727ec93c4ece9549375ffe9ea9e9a08
7
- data.tar.gz: aaebdb605611682da1a7c90273b3e7433ffb53cf2524eb29d56277bc03f5f6914d815263223c7efbc6715858cddc86c7bfd460cec99199c96013d2cfde69fb9f
6
+ metadata.gz: e8dc19eedd724d32b5bded8f7c01db9650fdc811fa4491d3e5fd89fed82fe9ea7fa7e073e0821ad3ac8c7c54b4f260032727c8547ffba53eed694c2214ccbb3b
7
+ data.tar.gz: 82a35745f21469296d35073f82a5858a3dbbf0d524710457a20bb6e2d8f0711e9cc1f6d85ffb837af693747f395da635adff4cc0e0ea0da8129cf57a9c577478
data/bin/.keep CHANGED
File without changes
@@ -31,7 +31,9 @@ module RailsParamValidation
31
31
  }
32
32
 
33
33
  @actions.each do |operation|
34
- body = operation.params.filter { |_, v| v[:type] == :body }.map { |name, pd| [name, pd[:schema]] }.to_h
34
+ body = operation.params.filter do |_, v|
35
+ v[:type] == :body && !RailsParamValidation::ValidatorFactory.create(v[:schema]).to_openapi.nil?
36
+ end.map { |name, pd| [name, pd[:schema]] }.to_h
35
37
 
36
38
  parameters = operation.params.filter { |_, v| v[:type] != :body }.map do |name, pd|
37
39
  param_definition = { name: name, in: pd[:type] }
@@ -1,3 +1,3 @@
1
1
  module RailsParamValidation
2
- VERSION = "0.4.11"
2
+ VERSION = "0.4.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-param-validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oskar Kirmis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-06 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Declarative parameter definition and validation for Rails
14
14
  email:
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.3.7
96
+ rubygems_version: 3.3.13
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Declarative parameter definition and validation for Rails