Skip to content

Commit

Permalink
Fixed schema.fieldsMatch (#981)
Browse files Browse the repository at this point in the history
* Fixed `schema.fieldsMatch`

* Rephrase cf. rest of Changelog

---------

Co-authored-by: Peter Desmet <[email protected]>
  • Loading branch information
roll and peterdesmet authored Sep 25, 2024
1 parent 05839a0 commit 60663f8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 46 deletions.
4 changes: 4 additions & 0 deletions content/docs/overview/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ This document includes all meaningful changes made to the **Data Package standar

## v2.1

##### `schema.fieldsMatch` (fixed)

[fieldsMatch](/standard/table-schema/#fieldsMatch) has been corrected from array to string to match its definition ([#965](https://github.com/frictionlessdata/datapackage/issues/965)).

## v2.0

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.
Expand Down
18 changes: 8 additions & 10 deletions profiles/source/dictionary/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,14 @@ tableSchemaField:
- "$ref": "#/definitions/tableSchemaFieldDuration"
- "$ref": "#/definitions/tableSchemaFieldAny"
tableSchemaFieldsMatch:
type: array
item:
type: string
enum:
- exact
- equal
- subset
- superset
- partial
default: exact
type: string
enum:
- exact
- equal
- subset
- superset
- partial
default: exact
tableSchemaPrimaryKey:
oneOf:
- type: array
Expand Down
21 changes: 9 additions & 12 deletions profiles/target/2.1/datapackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2938,18 +2938,15 @@
]
},
"fieldsMatch": {
"type": "array",
"item": {
"type": "string",
"enum": [
"exact",
"equal",
"subset",
"superset",
"partial"
],
"default": "exact"
}
"type": "string",
"enum": [
"exact",
"equal",
"subset",
"superset",
"partial"
],
"default": "exact"
},
"primaryKey": {
"oneOf": [
Expand Down
21 changes: 9 additions & 12 deletions profiles/target/2.1/dataresource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2702,18 +2702,15 @@
]
},
"fieldsMatch": {
"type": "array",
"item": {
"type": "string",
"enum": [
"exact",
"equal",
"subset",
"superset",
"partial"
],
"default": "exact"
}
"type": "string",
"enum": [
"exact",
"equal",
"subset",
"superset",
"partial"
],
"default": "exact"
},
"primaryKey": {
"oneOf": [
Expand Down
21 changes: 9 additions & 12 deletions profiles/target/2.1/tableschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2268,18 +2268,15 @@
]
},
"fieldsMatch": {
"type": "array",
"item": {
"type": "string",
"enum": [
"exact",
"equal",
"subset",
"superset",
"partial"
],
"default": "exact"
}
"type": "string",
"enum": [
"exact",
"equal",
"subset",
"superset",
"partial"
],
"default": "exact"
},
"primaryKey": {
"oneOf": [
Expand Down

0 comments on commit 60663f8

Please sign in to comment.