json_schemer 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/json_schemer/schema/base.rb +9 -10
- data/lib/json_schemer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e21ec6fd7dcbc28003dfab561b6bf370703ff602abc3b31fa579f5898e5934c6
|
4
|
+
data.tar.gz: 89ca6ea9b2400fcaafc3eae438077af0cc881f19bd40646c8bc74c3772bcae89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12e2e504bd9222f9f86a5f54d7e2c9a0cc9d323d49d9d3b3f11161fdfefb86ce1080c62bf07b0de462d28bced42276bb6faaa3943c2ce1faee1d3f61e8f3c1f
|
7
|
+
data.tar.gz: f3157b1e89c4eb89cc9727cd93087b518d78ae05fc46c0fe8f6ddc81815dee55d6fa576b5b46bd112479466d134ec0b24a2f75f58e6f80073435600ce796edd9
|
data/Gemfile.lock
CHANGED
@@ -615,16 +615,15 @@ module JSONSchemer
|
|
615
615
|
if schema.is_a?(Array)
|
616
616
|
schema.each_with_index { |subschema, index| resolve_ids(subschema, ids, parent_uri, "#{pointer}/#{index}") }
|
617
617
|
elsif schema.is_a?(Hash)
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
definitions.each { |key, subschema| resolve_ids(subschema, ids, uri, "#{pointer}/definitions/#{key}") }
|
618
|
+
uri = join_uri(parent_uri, schema[id_keyword])
|
619
|
+
schema.each do |key, value|
|
620
|
+
if key == id_keyword && uri != parent_uri
|
621
|
+
ids[uri.to_s] = {
|
622
|
+
schema: schema,
|
623
|
+
pointer: pointer
|
624
|
+
}
|
625
|
+
end
|
626
|
+
resolve_ids(value, ids, uri, "#{pointer}/#{key}")
|
628
627
|
end
|
629
628
|
end
|
630
629
|
ids
|
data/lib/json_schemer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_schemer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Harsha
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|