dato_json_schema 0.20.8 → 0.20.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 735c70cc15ebcd63ca8bf57f522e3530a5188edde5604477485248ec8492311f
4
- data.tar.gz: ef9fa70ea29692a09b7b18b947305beb245060dcb67f30ecef35590d1c649fcf
3
+ metadata.gz: ebc8feef22a5290c21f944327bf8578f036808a3cc0f6dda3c04a07a19f6f614
4
+ data.tar.gz: d0d4d13be89493c62d654c9fc8c84ae4746b311ac9e097e84235cb012a62a2df
5
5
  SHA512:
6
- metadata.gz: da29a2be214acabeda042ab5d2a170711054b676087c56e568b41d83170cad46e63280e911cd4a01c5f59092418a9e507ef5bc2c80c7164ddd5680e065c029fe
7
- data.tar.gz: b28c3d0fc1db24f3a11ecff03fe74c1006bfeaa97421ec2ce39bc94a03d364ea5926448a11cc13dcb58551daf2361f1bc087a18097175893d462d686a7d72336
6
+ metadata.gz: 39fd6fd66bca9ad53608c318b7ff3a0ec2e9ffd440d22c27a39afee64ef8077f21d5d643531333223f865acce8e5496fef64daa36d8c1e9368ec01d09b2797ce
7
+ data.tar.gz: 3900cde54955237150c5a53f3baf094aa51a3e1c2e60eae07182802c44cec2be36858ee4ab711d7d16a2b6192bff4979c9cc0359d1076fd47560943e8b56904c
@@ -319,6 +319,7 @@ module JsonSchema
319
319
  schema.links.each { |l|
320
320
  yield l.schema if l.schema
321
321
  yield l.target_schema if l.target_schema
322
+ yield l.job_schema if l.job_schema
322
323
  }
323
324
  end
324
325
  end
@@ -216,6 +216,9 @@ module DataScaffold
216
216
  },
217
217
  "targetSchema" => {
218
218
  "$ref" => "#/definitions/app"
219
+ },
220
+ "jobSchema" => {
221
+ "$ref" => "#/definitions/app"
219
222
  }
220
223
  ],
221
224
  "media" => {
@@ -192,6 +192,9 @@ describe JsonSchema::Parser do
192
192
  },
193
193
  "targetSchema" => {
194
194
  "$ref" => "#/definitions/app"
195
+ },
196
+ "JobSchema" => {
197
+ "$ref" => "#/definitions/app"
195
198
  }
196
199
  ]
197
200
  )
@@ -123,6 +123,13 @@ describe JsonSchema::ReferenceExpander do
123
123
  assert_equal ["string"], schema.type
124
124
  end
125
125
 
126
+ it "will expand hyperschema link jobSchemas" do
127
+ expand
128
+ assert_equal [], error_messages
129
+ schema = @schema.properties["app"].links[0].job_schema.properties["name"]
130
+ assert_equal ["string"], schema.type
131
+ end
132
+
126
133
  it "will perform multiple passes to resolve all references" do
127
134
  pointer("#/properties").merge!(
128
135
  "app0" => { "$ref" => "#/properties/app1" },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato_json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.8
4
+ version: 0.20.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -69,8 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubyforge_project:
73
- rubygems_version: 2.7.6
72
+ rubygems_version: 3.1.2
74
73
  signing_key:
75
74
  specification_version: 4
76
75
  summary: A JSON Schema V4 and Hyperschema V4 parser and validator.