json-schema-lite 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/json/schema/lite.rb +1 -1
- data/lib/json/schema/lite/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90b0236550b791f3b4da1f151fe3f27636f2ba94
|
4
|
+
data.tar.gz: d76487b6fcdd15ef59ef76210d452dfb2452cb9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b7b0f6e37862f9ff60109ed29f70d8cbfe915d882961a83da13d448988dd2887be7eb326c34395336d9b1932cc950b584d6ef6cbc550996114e4178de4ba79
|
7
|
+
data.tar.gz: d2d35063ac0d8cf5e0d3e83f6d768c5e34f6771b825c912db8a0c2c746e5413bc6c9c650786a7cf2d71322880e493da92ab02e0a52a1debb760bca233cfcdf2c
|
data/README.md
CHANGED
@@ -72,7 +72,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
72
72
|
|
73
73
|
## Contributing
|
74
74
|
|
75
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
75
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/munky69rock/json-schema-lite. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
76
76
|
|
77
77
|
|
78
78
|
## License
|
data/lib/json/schema/lite.rb
CHANGED
@@ -11,7 +11,7 @@ module JSON
|
|
11
11
|
if definition.is_a? Hash
|
12
12
|
definition.each_pair do |k, v|
|
13
13
|
if k.to_s == 'properties' || option[:properties]
|
14
|
-
v[:option] = { properties: true } if v.is_a?
|
14
|
+
v[:option] = { properties: true } if v.is_a?(Hash) && v[:properties].nil?
|
15
15
|
json_schema[k] = define v
|
16
16
|
else
|
17
17
|
json_schema[k] = v
|