Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 8e03abc

Browse files
author
Haley Van Dyck
committed
Merge pull request #286 from philipashlock/json-schema-requirements-fix
JSON schema corrections
2 parents 67c1b16 + 2e59d7d commit 8e03abc

File tree

1 file changed

+41
-20
lines changed

1 file changed

+41
-20
lines changed

Diff for: schema/1_0_final/single_entry.json

+41-20
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@
2525
}
2626
]
2727
},
28+
"accessURL": {
29+
"title":"Download URL",
30+
"description":"URL providing direct access to the downloadable distribution of a dataset.",
31+
"anyOf": [
32+
{
33+
"type": "string",
34+
"format": "uri"
35+
},
36+
{
37+
"type": "null"
38+
}
39+
]
40+
},
2841
"accrualPeriodicity": {
2942
"title":"Frequency",
3043
"description":"Frequency with which dataset is published.",
@@ -48,14 +61,14 @@
4861
"items": {
4962
"type": "string",
5063
"pattern": "[0-9]{3}:[0-9]{2}"
51-
}
64+
},
65+
"minItems": 1,
66+
"uniqueItems": true
5267
},
5368
{
5469
"type": "null"
5570
}
56-
],
57-
"minItems": 1,
58-
"uniqueItems": true
71+
]
5972
},
6073
"contactPoint": {
6174
"title":"Contact Name",
@@ -97,9 +110,10 @@
97110
"description":"Holds multiple download URLs for datasets composed of multiple files and/or file types",
98111
"anyOf": [
99112
{
100-
"type": "array",
113+
"type": "array",
101114
"items": {
102115
"type": "object",
116+
"required": ["accessURL", "format"],
103117
"properties": {
104118
"accessURL": {
105119
"title":"Download URL",
@@ -123,6 +137,19 @@
123137
}
124138
]
125139
},
140+
"format": {
141+
"title":"Format",
142+
"description":"The file format or API type of the distribution.",
143+
"anyOf": [
144+
{
145+
"pattern": "^[-\\w]+/[-\\w]+(\\.[-\\w]+)*([+][-\\w]+)?$",
146+
"type": "string"
147+
},
148+
{
149+
"type": "null"
150+
}
151+
]
152+
},
126153
"identifier": {
127154
"title":"Unique Identifier",
128155
"description":"A unique identifier for the dataset or API as maintained within an Agency catalog or database.",
@@ -165,19 +192,12 @@
165192
"keyword": {
166193
"title": "Tags",
167194
"description": "Tags (or keywords) help users discover your dataset; please include terms that would be used by technical and non-technical users.",
168-
"anyOf": [
169-
{
170-
"type": "array",
171-
"items": {
172-
"type": "string"
173-
},
174-
"minItems": 1,
175-
"uniqueItems": true
176-
},
177-
{
178-
"type": "null"
179-
}
180-
]
195+
"type": "array",
196+
"items": {
197+
"type": "string",
198+
"minLength": 1
199+
},
200+
"minItems": 1
181201
},
182202
"landingPage": {
183203
"title":"Homepage URL",
@@ -263,7 +283,7 @@
263283
"anyOf": [
264284
{
265285
"type": "string",
266-
"minLength": 1
286+
"pattern": "[0-9]{3}-[0-9]{9}"
267287
},
268288
{
269289
"type": "null"
@@ -377,7 +397,8 @@
377397
{
378398
"type": "array",
379399
"items": {
380-
"type": "string"
400+
"type": "string",
401+
"minLength": 1
381402
},
382403
"minItems": 1,
383404
"uniqueItems": true

0 commit comments

Comments
 (0)