adiwg-mdjson_schemas 2.0.0.pre.beta.6 → 2.0.0.pre.beta.7

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
  SHA1:
3
- metadata.gz: 87d677caee4e6a6556fd60b9e1cdea9b7d11b941
4
- data.tar.gz: 50d702d2b5a43611e051c78143b85330e5021dfa
3
+ metadata.gz: 359b30d54dff72063bded6390a24598a0c73aa96
4
+ data.tar.gz: a479441718ba1508eaf456adbd9099078e8c553b
5
5
  SHA512:
6
- metadata.gz: 03b8922937589ba54c874341528419d87c4d7810a68f593b1831198369d13f61fc19f25c08835e992b2e49f55eccf9f5a6f87e3819b6c66754e9da256715326a
7
- data.tar.gz: 9c6c2e9316cc7f750ef3ff9b12d4aa06311d87ce0ade699be02eaae98ab1c0e92974e0991767cacba1262272652d5525aacc69b5a7e41addf97e983482b8126c
6
+ metadata.gz: 9fb433fae0a1af8091de5ddba91ddb9b51d15d783246aa57301b604178936e0d43d83e0b72cd3dbf15029cdb85dfb228968c844a2e733bb2eeb174cf84f7cbf0
7
+ data.tar.gz: e76b36a500550540d6c8cca7d0f5ebdf16a0b8dc757eed7ff0c68b6d19b6370c402203d26b082256f48f5a5fc2a5ee22b97c7fa9c421878c24cf1adcbbe66000
@@ -49,4 +49,12 @@
49
49
  "memberOfOrganization0",
50
50
  "memberOfOrganization1"
51
51
  ]
52
+ }, {
53
+ "contactId": "contactId",
54
+ "isOrganization": false,
55
+ "positionName": "positionName"
56
+ }, {
57
+ "contactId": "contactId",
58
+ "isOrganization": true,
59
+ "name": "name"
52
60
  }]
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module MdjsonSchemas
3
3
  # Current schema version number
4
- VERSION = "2.0.0-beta.6"
4
+ VERSION = "2.0.0-beta.7"
5
5
  end
6
6
  end
data/schema/contact.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "example": "../examples/contact.json",
10
10
  "type": "object",
11
11
  "title": "contact",
12
- "required": ["contactId", "name", "isOrganization"],
12
+ "required": ["contactId", "isOrganization"],
13
13
  "additionalProperties": true,
14
14
  "properties": {
15
15
  "contactId": {
@@ -122,6 +122,29 @@
122
122
  "description": "User defined contact type."
123
123
  }
124
124
  },
125
+ "oneOf": [{
126
+ "description": "name is required for organization",
127
+ "required": ["name"],
128
+ "properties": {
129
+ "isOrganization": {
130
+ "enum": [true]
131
+ }
132
+ }
133
+ }, {
134
+ "description": "name or positionName is required for individual",
135
+ "properties": {
136
+ "isOrganization": {
137
+ "enum": [false]
138
+ }
139
+ },
140
+ "anyOf": [{
141
+ "description": "name is required",
142
+ "required": ["name"]
143
+ }, {
144
+ "description": "positionName is required",
145
+ "required": ["positionName"]
146
+ }]
147
+ }],
125
148
  "definitions": {
126
149
  "phone": {
127
150
  "type": "object",
data/schema/schema.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "2.0.0-beta.6",
4
+ "version": "2.0.0-beta.7",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
@@ -30,7 +30,6 @@
30
30
  "type": "array",
31
31
  "description": "Names associated with the time period.",
32
32
  "translation": {},
33
- "minItems": 1,
34
33
  "items": {
35
34
  "type": "string"
36
35
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdjson_schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta.6
4
+ version: 2.0.0.pre.beta.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bradley, Stan Smith