Skip to content

Commit a3cac2c

Browse files
rollpeterdesmet
andcommitted
Fixed schema.fieldsMatch (#981)
* Fixed `schema.fieldsMatch` * Rephrase cf. rest of Changelog --------- Co-authored-by: Peter Desmet <[email protected]>
1 parent aacf506 commit a3cac2c

File tree

5 files changed

+39
-46
lines changed

5 files changed

+39
-46
lines changed

content/docs/overview/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ This document includes all meaningful changes made to the **Data Package standar
88

99
## v2.1
1010

11+
##### `schema.fieldsMatch` (fixed)
12+
13+
[fieldsMatch](/standard/table-schema/#fieldsMatch) has been corrected from array to string to match its definition ([#965](https://github.com/frictionlessdata/datapackage/issues/965)).
14+
1115
## v2.0
1216

1317
This release includes a rich set of specification improvements to make Data Package a finished product (see [announcement](https://frictionlessdata.io/blog/2023/11/15/frictionless-specs-update/)). All changes were reviewed and accepted by the Data Package Working Group.

profiles/dictionary/schema.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,14 @@ tableSchemaField:
123123
- "$ref": "#/definitions/tableSchemaFieldDuration"
124124
- "$ref": "#/definitions/tableSchemaFieldAny"
125125
tableSchemaFieldsMatch:
126-
type: array
127-
item:
128-
type: string
129-
enum:
130-
- exact
131-
- equal
132-
- subset
133-
- superset
134-
- partial
135-
default: exact
126+
type: string
127+
enum:
128+
- exact
129+
- equal
130+
- subset
131+
- superset
132+
- partial
133+
default: exact
136134
tableSchemaPrimaryKey:
137135
oneOf:
138136
- type: array

profiles/target/2.1/datapackage.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2938,18 +2938,15 @@
29382938
]
29392939
},
29402940
"fieldsMatch": {
2941-
"type": "array",
2942-
"item": {
2943-
"type": "string",
2944-
"enum": [
2945-
"exact",
2946-
"equal",
2947-
"subset",
2948-
"superset",
2949-
"partial"
2950-
],
2951-
"default": "exact"
2952-
}
2941+
"type": "string",
2942+
"enum": [
2943+
"exact",
2944+
"equal",
2945+
"subset",
2946+
"superset",
2947+
"partial"
2948+
],
2949+
"default": "exact"
29532950
},
29542951
"primaryKey": {
29552952
"oneOf": [

profiles/target/2.1/dataresource.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,18 +2702,15 @@
27022702
]
27032703
},
27042704
"fieldsMatch": {
2705-
"type": "array",
2706-
"item": {
2707-
"type": "string",
2708-
"enum": [
2709-
"exact",
2710-
"equal",
2711-
"subset",
2712-
"superset",
2713-
"partial"
2714-
],
2715-
"default": "exact"
2716-
}
2705+
"type": "string",
2706+
"enum": [
2707+
"exact",
2708+
"equal",
2709+
"subset",
2710+
"superset",
2711+
"partial"
2712+
],
2713+
"default": "exact"
27172714
},
27182715
"primaryKey": {
27192716
"oneOf": [

profiles/target/2.1/tableschema.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,18 +2268,15 @@
22682268
]
22692269
},
22702270
"fieldsMatch": {
2271-
"type": "array",
2272-
"item": {
2273-
"type": "string",
2274-
"enum": [
2275-
"exact",
2276-
"equal",
2277-
"subset",
2278-
"superset",
2279-
"partial"
2280-
],
2281-
"default": "exact"
2282-
}
2271+
"type": "string",
2272+
"enum": [
2273+
"exact",
2274+
"equal",
2275+
"subset",
2276+
"superset",
2277+
"partial"
2278+
],
2279+
"default": "exact"
22832280
},
22842281
"primaryKey": {
22852282
"oneOf": [

0 commit comments

Comments
 (0)