adiwg-json_schemas 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/adiwg-json_schemas.gemspec +2 -2
- data/examples/full_example.json +58 -55
- data/examples/full_example2.json +64 -61
- data/examples/lcc_project_example.json +1 -3
- data/examples/minimum_example.json +35 -0
- data/examples/resourceConstraints.json +1 -2
- data/examples/resourceInfo.json +2 -0
- data/lib/adiwg/json_schemas/version.rb +1 -1
- data/schema/schema/citation.json +68 -6
- data/schema/schema/contact.json +131 -46
- data/schema/schema/dataQuality.json +80 -7
- data/schema/schema/distributor.json +91 -10
- data/schema/schema/extent.json +93 -11
- data/schema/schema/geojson/bbox.json +5 -1
- data/schema/schema/geojson/crs.json +74 -48
- data/schema/schema/geojson/geojson.json +63 -18
- data/schema/schema/geojson/geometry.json +69 -9
- data/schema/schema/graphicOverview.json +22 -3
- data/schema/schema/keyword.json +15 -1
- data/schema/schema/maintInfo.json +18 -2
- data/schema/schema/metadata.json +97 -17
- data/schema/schema/onlineResource.json +21 -5
- data/schema/schema/resolution.json +21 -4
- data/schema/schema/resourceConstraint.json +46 -7
- data/schema/schema/resourceInfo.json +142 -15
- data/schema/schema/taxonomy.json +64 -7
- data/schema/schema/usage.json +18 -3
- data/schema/schema.json +12 -2
- data/templates/adiwg_metadata_template.json +450 -147
- data/test/tc_schemas.rb +5 -0
- metadata +3 -2
data/test/tc_schemas.rb
CHANGED
@@ -48,6 +48,11 @@ class TestExamples < Test::Unit::TestCase
|
|
48
48
|
assert(errors.empty?, errors.join("/n"))
|
49
49
|
end
|
50
50
|
|
51
|
+
def test_minimum_example
|
52
|
+
errors = JSON::Validator.fully_validate(@@schema , @@ex + 'minimum_example.json')
|
53
|
+
assert(errors.empty?, errors.join("/n"))
|
54
|
+
end
|
55
|
+
|
51
56
|
def test_lcc_example
|
52
57
|
errors = JSON::Validator.fully_validate(@@schema , @@ex + 'lcc_project_example.json')
|
53
58
|
assert(errors.empty?, errors.join("/n"))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adiwg-json_schemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bradley, Stan Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -99,6 +99,7 @@ files:
|
|
99
99
|
- examples/keywords.json
|
100
100
|
- examples/lcc_project_example.json
|
101
101
|
- examples/maintInfo.json
|
102
|
+
- examples/minimum_example.json
|
102
103
|
- examples/onlineResource.json
|
103
104
|
- examples/resolution.json
|
104
105
|
- examples/resourceConstraints.json
|