json_world 0.1.1 → 0.1.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/json_world/dsl.rb +8 -1
- data/lib/json_world/property_definition.rb +1 -1
- data/lib/json_world/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: f47fd3e6fa82da31da36b53d47496945da7852fb
|
4
|
+
data.tar.gz: 0e638d6c731d1ccccd98ab5607ffef275c334273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 460be1b1b095b4c64cbaaba1d777a72c59bd49ac04dbd12dff490cf1ec2b169045edfb70bd7fdadfe5c4304149e3fded79d1a57099afab2bff3b67354fad931a
|
7
|
+
data.tar.gz: fab931e7015a9c94b8117921fd82b65eec50138e7a79f893f8713d3dfb985b78492a0210fa385f9b0859c8aeeb7d27ddf3fc58f79142d4f1a9b89e82f73334ab
|
data/CHANGELOG.md
CHANGED
data/lib/json_world/dsl.rb
CHANGED
@@ -33,10 +33,17 @@ module JsonWorld
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
# @return [Hash]
|
37
|
+
def as_json_schema_without_link
|
38
|
+
as_json_schema.reject do |key, _value|
|
39
|
+
key == :links
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
36
43
|
# @note Override
|
37
44
|
def inherited(child)
|
38
45
|
super
|
39
|
-
child.link_definitions = link_definitions
|
46
|
+
child.link_definitions = link_definitions.clone
|
40
47
|
child.property_definitions = property_definitions.clone
|
41
48
|
end
|
42
49
|
|
data/lib/json_world/version.rb
CHANGED