frictionlessdata / datapackage-java

A Java library for working with Frictionless Data Data Packages.
MIT License
20 stars 7 forks source link

Contributor role enum value #45

Open mike-podolskiy90 opened 1 year ago

mike-podolskiy90 commented 1 year ago

According to the frictionless specs contributor's role is only recommended to be one of author, publisher, maintainer, wrangler, and contributor. Current implementation allows only values from the enum https://github.com/frictionlessdata/datapackage-java/blob/main/src/main/java/io/frictionlessdata/datapackage/Contributor.java#L98

There are plenty of cases where those five is not enough, so it should be String.


@iSnow

iSnow commented 1 year ago

I see the problem, but this needs to be a bug report on the specs, we are following their recommendations: https://specs.frictionlessdata.io/data-package/#metadata