Skip to content

Commit

Permalink
keywords as list instead of array
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Mar 30, 2022
1 parent 7b687ae commit bd7cd09
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- JSON schemas #332
- introduce `keywords` required for Metax in `doiInfo`
- dataset `description` and study `studyAbstract` are now mandatory
- `keywords` will be comma separated values, that will require splitting when adding to Metax API

### Fixed

Expand Down
8 changes: 2 additions & 6 deletions metadata_backend/helpers/schemas/datacite.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,9 @@
"uniqueItems": true
},
"keywords": {
"type": "array",
"type": "string",
"title": "Keywords",
"description": "A keyword or tag describing the resources. It is recommended to use a controlled vocabulary, ontology or classification when choosing keywords. At least one keyword is required.",
"items": {
"minLength": 1,
"type": "string"
}
"description": "A keyword or tag describing the resources. It is recommended to use a controlled vocabulary, ontology or classification when choosing keywords. At least one keyword is required."
},
"contributors": {
"type": "array",
Expand Down
8 changes: 2 additions & 6 deletions metadata_backend/helpers/schemas/folders.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,9 @@
"uniqueItems": true
},
"keywords": {
"type": "array",
"type": "string",
"title": "Keywords",
"description": "A keyword or tag describing the resources. It is recommended to use a controlled vocabulary, ontology or classification when choosing keywords. At least one keyword is required.",
"items": {
"minLength": 1,
"type": "string"
}
"description": "A keyword or tag describing the resources. It is recommended to use a controlled vocabulary, ontology or classification when choosing keywords. At least one keyword is required."
},
"contributors": {
"type": "array",
Expand Down
5 changes: 1 addition & 4 deletions tests/test_files/doi/test_doi.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
"subjectScheme": "Fields of Science and Technology (FOS)"
}
],
"keywords": [
"test",
"keyword"
],
"keywords": "test,keyword",
"contributors": [
{
"name": "Contributor, Test",
Expand Down

0 comments on commit bd7cd09

Please sign in to comment.