Skip to content

Commit 7acae36

Browse files
committed
Updated profiles
1 parent 4664b95 commit 7acae36

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

profiles/dictionary/resource.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ dataResource:
7272
schema:
7373
"$ref": "#/definitions/tableSchema"
7474
propertyOrder: 140
75+
jsonSchema:
76+
"$ref": "#/definitions/jsonSchema"
77+
propertyOrder: 140
7578
pathArray:
7679
type: array
7780
minItems: 1
@@ -115,6 +118,7 @@ resourceType:
115118
type: string
116119
enum:
117120
- table
121+
- json
118122
format:
119123
title: Format
120124
description: The file format of this resource.
@@ -170,3 +174,9 @@ hash:
170174
{
171175
"hash": "SHA256:5262f12512590031bbcc9a430452bfd75c2791ad6771320bb4b5728bfb78c4d0"
172176
}
177+
jsonSchema:
178+
title: JSON schema
179+
description: A JSON Schema for this resource, compliant with the JSON Schema specification.
180+
type:
181+
- string
182+
- object

public/profiles/2.1/datapackage.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@
323323
"propertyOrder": 235,
324324
"type": "string",
325325
"enum": [
326-
"table"
326+
"table",
327+
"json"
327328
]
328329
},
329330
"title": {
@@ -3404,6 +3405,15 @@
34043405
"examples": [
34053406
"{\n \"schema\": {\n \"fields\": [\n {\n \"name\": \"first_name\",\n \"type\": \"string\"\n \"constraints\": {\n \"required\": true\n }\n },\n {\n \"name\": \"age\",\n \"type\": \"integer\"\n },\n ],\n \"primaryKey\": [\n \"name\"\n ]\n }\n}\n"
34063407
]
3408+
},
3409+
"jsonSchema": {
3410+
"propertyOrder": 140,
3411+
"title": "JSON schema",
3412+
"description": "A JSON Schema for this resource, compliant with the JSON Schema specification.",
3413+
"type": [
3414+
"string",
3415+
"object"
3416+
]
34073417
}
34083418
}
34093419
},

public/profiles/2.1/dataresource.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
"propertyOrder": 235,
8888
"type": "string",
8989
"enum": [
90-
"table"
90+
"table",
91+
"json"
9192
]
9293
},
9394
"title": {
@@ -3168,6 +3169,15 @@
31683169
"examples": [
31693170
"{\n \"schema\": {\n \"fields\": [\n {\n \"name\": \"first_name\",\n \"type\": \"string\"\n \"constraints\": {\n \"required\": true\n }\n },\n {\n \"name\": \"age\",\n \"type\": \"integer\"\n },\n ],\n \"primaryKey\": [\n \"name\"\n ]\n }\n}\n"
31703171
]
3172+
},
3173+
"jsonSchema": {
3174+
"propertyOrder": 140,
3175+
"title": "JSON schema",
3176+
"description": "A JSON Schema for this resource, compliant with the JSON Schema specification.",
3177+
"type": [
3178+
"string",
3179+
"object"
3180+
]
31713181
}
31723182
}
31733183
}

0 commit comments

Comments
 (0)