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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9af0b64dd4e5b7bc1183154a5a218f68e42d902
4
- data.tar.gz: e07e9c3ff0e5c1cc64bbd0dd36696f776b3b944d
3
+ metadata.gz: f8265f761aba8f14eccc4613c6e06ca0e5324405
4
+ data.tar.gz: 0370bc489c66376620a4862ddf9ef412f0c9a8c0
5
5
  SHA512:
6
- metadata.gz: fe41193d59999d6fd074dabac56d5dbf9ebd592ac48d15d7a8da47214b3a7d513e095934f6060b3ac1a0d7f01b1c88a944bdc01ae39e8ab348b92d7682d7e50c
7
- data.tar.gz: da3eec06cb1e942f3860babc9a12cfb0695adf5d71eeb8cdfaff346a3dd14bb1f0a31a0ec13b227b38188da238f09c95e552d94616b75104f23ba19aa48b2209
6
+ metadata.gz: 24be7b90267fd25cc9d05a55997973e125f4cc5b4f1a238fba047340368df0c09fc87896d62326b553d207204e87099058fbb19dd6ab2c71de35ed897bdad0ec
7
+ data.tar.gz: b6385b674ae9defa2a3dd30926696941b1cdddfb61dc637b3bee2b0d2aef39527eaf1d6fde4a1e90e82beecd62b5829554c3a525c4df1131ee6808bf5be5fb4d
@@ -1,7 +1,21 @@
1
1
  # Change Log
2
2
 
3
- ## [v2.4.0](https://github.com/adiwg/mdJson-schemas/tree/v2.4.0)
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
  [![Build Status](https://travis-ci.org/adiwg/mdJson-schemas.svg?branch=master)](https://travis-ci.org/adiwg/mdJson-schemas)
2
2
  [![Gem Version](https://badge.fury.io/rb/adiwg-mdjson_schemas.svg)](http://badge.fury.io/rb/adiwg-mdjson_schemas)
3
3
  [![Bower version](https://badge.fury.io/bo/mdjson-schemas.svg)](https://badge.fury.io/bo/mdjson-schemas)
4
+ [![npm version](https://badge.fury.io/js/mdjson-schemas.svg)](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. This causes a problem
39
- with the [ruby-json-schema/json-schema](https://github.com/ruby-json-schema/json-schema) gem.
40
- As a workaround, you can pre-load all of the schemas by calling `ADIWG::MdjsonSchemas::Utils::load_schemas` before validation.
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
 
@@ -6,7 +6,10 @@
6
6
  "domainItem": [{
7
7
  "name": "name0",
8
8
  "value": "value0",
9
- "definition": "definition0"
9
+ "definition": "definition0",
10
+ "reference":{
11
+ "title": "domainReference"
12
+ }
10
13
  },
11
14
  {
12
15
  "name": "name1",
@@ -2513,7 +2513,7 @@
2513
2513
  "contactId": "CID001"
2514
2514
  }]
2515
2515
  },
2516
- "dictionaryFormat": "format",
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
- "dictionaryFormat": "MSSQL",
2698
+ "dictionaryFunctionalLanguage": "MSSQL",
2699
2699
  "dictionaryIncludedWithResource": false
2700
2700
  }
2701
2701
  ],
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module MdjsonSchemas
3
3
  # Current schema version number
4
- VERSION = "2.4.1"
4
+ VERSION = "2.4.2"
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdjson-schemas",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "JSON schemas, examples, and templates for ADIwg metadata standards",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -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-2": ["MD_FeatureCatalogueDescription > includedWithDataset"]
68
+ "ISO 19115-3": ["MD_FeatureCatalogueDescription > includedWithDataset"]
64
69
  },
65
70
  "default": false
66
71
  },
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "codeName": {
19
19
  "type": "string",
20
- "description": "The code or 'lookup table' name for the domin used in the database schema definitions."
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
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "2.4.1",
4
+ "version": "2.4.2",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
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.1
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: 2017-12-28 00:00:00.000000000 Z
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.4.5
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