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
493 stars 112 forks source link

Discourage usage of unnecessary union types #873

Closed roll closed 6 months ago

roll commented 8 months ago

The specs need to be reviewed and acted on properties like schema.primaryKey: string | string[] that create unnecessary complexity for implementations and confusion for publishers. Discouraging needs to be done in non-breaking manner

nichtich commented 8 months ago

For publishers it's only confusing if some fields allow both string and array of string while others don't allow it. Allowing both for all repeatable fields would be best for publishers but less so for implementors.