Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a role or *array of roles* for contributor role #846

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data-package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ The people or organizations who contributed to this Data Package. It `MUST` be a
* `title`: name/title of the contributor (name for person, name/title of organization)
* `path`: a fully qualified http URL pointing to a relevant location online for the contributor
* `email`: An email address
* `role`: a string describing the role of the contributor. It's `RECOMMENDED` to be one of: `author`, `publisher`, `maintainer`, `wrangler`, and `contributor`. Defaults to `contributor`.
* `role`: a string or array of strings describing the role(s) of the contributor. It's `RECOMMENDED` to be one of: `author`, `publisher`, `maintainer`, `wrangler`, and `contributor`. Defaults to `contributor`.
* Note on semantics: use of the "author" property does not imply that that person was the original creator of the data in the data package - merely that they created and/or maintain the data package. It is common for data packages to "package" up data from elsewhere. The original origin of the data can be indicated with the `sources` property - see above.
* `organization`: a string describing the organization this contributor is affiliated to.

##### `keywords`

An Array of string keywords to assist users searching for the package in catalogs.
An array of string keywords to assist users searching for the package in catalogs.

##### `image`

Expand Down
12 changes: 11 additions & 1 deletion schemas/dictionary/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ contributor:
description: An organizational affiliation for this contributor.
type: string
role:
type: string
oneOf: [
{ "$ref": "#/definitions/role" },
{ "$ref": "#/definitions/roleArray" }
]
default: contributor
required:
- title
Expand Down Expand Up @@ -273,6 +276,13 @@ licenses:
}
]
}
role:
type: string
roleArray:
type: array
minItems: 1
items:
"$ref": "#/definitions/role"
source:
title: Source
description: A source file.
Expand Down