adiwg-mdjson_schemas 2.4.1 → 2.4.2
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/CHANGELOG.md +16 -2
- data/README.md +14 -4
- data/examples/domain.json +4 -1
- data/examples/mdJson.json +2 -2
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/package.json +1 -1
- data/schema/dataDictionary.json +6 -1
- data/schema/domain.json +5 -1
- data/schema/schema.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8265f761aba8f14eccc4613c6e06ca0e5324405
|
|
4
|
+
data.tar.gz: 0370bc489c66376620a4862ddf9ef412f0c9a8c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24be7b90267fd25cc9d05a55997973e125f4cc5b4f1a238fba047340368df0c09fc87896d62326b553d207204e87099058fbb19dd6ab2c71de35ed897bdad0ec
|
|
7
|
+
data.tar.gz: b6385b674ae9defa2a3dd30926696941b1cdddfb61dc637b3bee2b0d2aef39527eaf1d6fde4a1e90e82beecd62b5829554c3a525c4df1131ee6808bf5be5fb4d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [v2.4.
|
|
3
|
+
## [v2.4.2](https://github.com/adiwg/mdJson-schemas/tree/v2.4.2) (2018-01-25)
|
|
4
|
+
[Full Changelog](https://github.com/adiwg/mdJson-schemas/compare/v2.4.1...v2.4.2)
|
|
4
5
|
|
|
6
|
+
**Implemented enhancements:**
|
|
7
|
+
|
|
8
|
+
- domainItem rule change [\#178](https://github.com/adiwg/mdJson-schemas/issues/178)
|
|
9
|
+
- Deprecate dataDictionary.dictionaryFormat [\#176](https://github.com/adiwg/mdJson-schemas/issues/176)
|
|
10
|
+
|
|
11
|
+
**Fixed bugs:**
|
|
12
|
+
|
|
13
|
+
- Wrong standard for dictionaryIncludedwithResource translation note [\#177](https://github.com/adiwg/mdJson-schemas/issues/177)
|
|
14
|
+
|
|
15
|
+
## [v2.4.1](https://github.com/adiwg/mdJson-schemas/tree/v2.4.1) (2017-12-28)
|
|
16
|
+
[Full Changelog](https://github.com/adiwg/mdJson-schemas/compare/v2.4.0...v2.4.1)
|
|
17
|
+
|
|
18
|
+
## [v2.4.0](https://github.com/adiwg/mdJson-schemas/tree/v2.4.0) (2017-12-27)
|
|
5
19
|
[Full Changelog](https://github.com/adiwg/mdJson-schemas/compare/v2.3.2...v2.4.0)
|
|
6
20
|
|
|
7
21
|
**Implemented enhancements:**
|
|
@@ -101,4 +115,4 @@
|
|
|
101
115
|
- Fixed spatialRepresentation ([1833df8](https://github.com/adiwg/mdJson-schemas/commit/1833df80b9324dfbc5eb067821bde4a8011ccc08) )
|
|
102
116
|
|
|
103
117
|
|
|
104
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
|
118
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
[](https://travis-ci.org/adiwg/mdJson-schemas)
|
|
2
2
|
[](http://badge.fury.io/rb/adiwg-mdjson_schemas)
|
|
3
3
|
[](https://badge.fury.io/bo/mdjson-schemas)
|
|
4
|
+
[](https://badge.fury.io/js/mdjson-schemas)
|
|
4
5
|
|
|
5
6
|
# mdJson-schemas
|
|
6
7
|
|
|
@@ -31,13 +32,22 @@ Install:
|
|
|
31
32
|
|
|
32
33
|
$ bower install mdjson-schemas
|
|
33
34
|
|
|
35
|
+
## npm
|
|
36
|
+
|
|
37
|
+
Install:
|
|
38
|
+
|
|
39
|
+
$ npm install mdjson-schemas
|
|
40
|
+
|
|
41
|
+
const Schemas = require('../resources/js/schemas.js');
|
|
42
|
+
|
|
43
|
+
|
|
34
44
|
### Usage
|
|
35
45
|
|
|
36
|
-
The main schema file is `schema/schema.json`. Load that file in your validator.
|
|
46
|
+
The main schema file is `schema/schema.json`. Load that file in your [validator](http://json-schema.org/implementations.html#libraries).
|
|
37
47
|
|
|
38
|
-
**NOTE**: The schemas use relative addresses for `$ref` paths.
|
|
39
|
-
with the [ruby-json-schema/json-schema](https://github.com/ruby-json-schema/json-schema) gem
|
|
40
|
-
|
|
48
|
+
**NOTE**: The schemas use relative addresses for `$ref` paths. If this causes a problem
|
|
49
|
+
with the [ruby-json-schema/json-schema](https://github.com/ruby-json-schema/json-schema) gem,
|
|
50
|
+
as a workaround you can pre-load all of the schemas by calling `ADIWG::MdjsonSchemas::Utils::load_schemas` before validation.
|
|
41
51
|
|
|
42
52
|
## Contributing
|
|
43
53
|
|
data/examples/domain.json
CHANGED
data/examples/mdJson.json
CHANGED
|
@@ -2513,7 +2513,7 @@
|
|
|
2513
2513
|
"contactId": "CID001"
|
|
2514
2514
|
}]
|
|
2515
2515
|
},
|
|
2516
|
-
"
|
|
2516
|
+
"dictionaryFunctionalLanguage": "UML",
|
|
2517
2517
|
"dictionaryIncludedWithResource": true,
|
|
2518
2518
|
"domain": [{
|
|
2519
2519
|
"domainId": "domainId0",
|
|
@@ -2695,7 +2695,7 @@
|
|
|
2695
2695
|
"contactId": "CID006"
|
|
2696
2696
|
}]
|
|
2697
2697
|
},
|
|
2698
|
-
"
|
|
2698
|
+
"dictionaryFunctionalLanguage": "MSSQL",
|
|
2699
2699
|
"dictionaryIncludedWithResource": false
|
|
2700
2700
|
}
|
|
2701
2701
|
],
|
data/package.json
CHANGED
data/schema/dataDictionary.json
CHANGED
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
"description": "Name, address, country, and telecommunications address of person or organization having primary responsibility for the intellectual content of this dictionary."
|
|
53
53
|
},
|
|
54
54
|
"dictionaryFormat": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "DEPRECATED in favor of dictionaryFunctionalLanguage.",
|
|
57
|
+
"deprecated": true
|
|
58
|
+
},
|
|
59
|
+
"dictionaryFunctionalLanguage": {
|
|
55
60
|
"type": "string",
|
|
56
61
|
"description": "Formal functional language used in the dictionary.",
|
|
57
62
|
"translation": {}
|
|
@@ -60,7 +65,7 @@
|
|
|
60
65
|
"type": "boolean",
|
|
61
66
|
"description": "Indication of whether or not the data dictionary is included with the resource.",
|
|
62
67
|
"translation": {
|
|
63
|
-
"ISO 19115-
|
|
68
|
+
"ISO 19115-3": ["MD_FeatureCatalogueDescription > includedWithDataset"]
|
|
64
69
|
},
|
|
65
70
|
"default": false
|
|
66
71
|
},
|
data/schema/domain.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"codeName": {
|
|
19
19
|
"type": "string",
|
|
20
|
-
"description": "The code or 'lookup table' name for the
|
|
20
|
+
"description": "The code or 'lookup table' name for the domain used in the database schema definitions."
|
|
21
21
|
},
|
|
22
22
|
"description": {
|
|
23
23
|
"type": "string",
|
|
@@ -63,6 +63,10 @@
|
|
|
63
63
|
"translation": {
|
|
64
64
|
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > listedValue > FC_ListedValue > definition"]
|
|
65
65
|
}
|
|
66
|
+
},
|
|
67
|
+
"reference": {
|
|
68
|
+
"description": "Reference to a standard to a standard which contains a definition for the domain item.",
|
|
69
|
+
"$ref": "./citation.json#"
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
}
|
data/schema/schema.json
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adiwg-mdjson_schemas
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.2
|
|
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:
|
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
338
338
|
version: '0'
|
|
339
339
|
requirements: []
|
|
340
340
|
rubyforge_project:
|
|
341
|
-
rubygems_version: 2.
|
|
341
|
+
rubygems_version: 2.6.8
|
|
342
342
|
signing_key:
|
|
343
343
|
specification_version: 4
|
|
344
344
|
summary: JSON schemas for the ADIwg metadata standard
|