typed_params 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/typed_params/parameterizer.rb +6 -0
- data/lib/typed_params/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c59b3bb4616ea961712403ef227a38d003dcc3f1ee9a6d84f310b853c67ebd0
|
4
|
+
data.tar.gz: '092c41c550392b86b7a54355d061c2a6580181a3e9c7cd159035628edcf42459'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8861eadab77356645756dbac358566ad33e872132ac9c68b29a8769c653806a0aa7487d81cf65a4a8046720a9389a20c75d4db0009418d785d844a0a908efff
|
7
|
+
data.tar.gz: ac7f14c76deb864aad8d11a3cf3cb5e2a72567ab7bf781780b8822aacb68820a8965374f439dee63568bf0a01a197c0189951cbc898e1ef15bbf4bc8840f4eb6
|
data/CHANGELOG.md
CHANGED
@@ -31,6 +31,9 @@ module TypedParams
|
|
31
31
|
:parent
|
32
32
|
|
33
33
|
def parameterize_array_schema(key:, value:)
|
34
|
+
return parameterize_value(key:, value:) if
|
35
|
+
value.nil?
|
36
|
+
|
34
37
|
param = Parameter.new(key:, value: [], schema:, parent:)
|
35
38
|
|
36
39
|
value.each_with_index do |v, i|
|
@@ -53,6 +56,9 @@ module TypedParams
|
|
53
56
|
end
|
54
57
|
|
55
58
|
def parameterize_hash_schema(key:, value:)
|
59
|
+
return parameterize_value(key:, value:) if
|
60
|
+
value.nil?
|
61
|
+
|
56
62
|
param = Parameter.new(key:, value: {}, schema:, parent:)
|
57
63
|
|
58
64
|
value.each do |k, v|
|
data/lib/typed_params/version.rb
CHANGED