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 +4 -4
- data/examples/contact.json +8 -0
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/schema/contact.json +24 -1
- data/schema/schema.json +1 -1
- data/schema/timePeriod.json +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 359b30d54dff72063bded6390a24598a0c73aa96
|
4
|
+
data.tar.gz: a479441718ba1508eaf456adbd9099078e8c553b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fb433fae0a1af8091de5ddba91ddb9b51d15d783246aa57301b604178936e0d43d83e0b72cd3dbf15029cdb85dfb228968c844a2e733bb2eeb174cf84f7cbf0
|
7
|
+
data.tar.gz: e76b36a500550540d6c8cca7d0f5ebdf16a0b8dc757eed7ff0c68b6d19b6370c402203d26b082256f48f5a5fc2a5ee22b97c7fa9c421878c24cf1adcbbe66000
|
data/examples/contact.json
CHANGED
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", "
|
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
data/schema/timePeriod.json
CHANGED