frictionlessdata / datapackage

Data Package is a standard consisting of a set of simple yet extensible specifications to describe datasets, data files and tabular data. It is a data definition language (DDL) and data API that facilitates findability, accessibility, interoperability, and reusability (FAIR) of data.
https://datapackage.org
The Unlicense
481 stars 109 forks source link

Allow omitting `foreignKey.reference.resource` for self-referencing #878

Closed roll closed 3 months ago

roll commented 5 months ago

Currently, a foreign key

MUST have a property resource which is the name of the resource within the current data package (i.e. the data package within which this Table Schema is located). For self-referencing foreign keys, i.e. references between fields in this Table Schema, the value of resource MUST be "" (i.e. the empty string).

I think requiring to provide an empty string property might be confusing and error-prone. It seems to be it won't break anything if we just allow not providing resource at all for self-referencing