Skip to content

Commit

Permalink
fix: ignore properties in Mendeley references that cannot be converte…
Browse files Browse the repository at this point in the history
…d to RIS. Closes #51
  • Loading branch information
customcommander committed Sep 12, 2021
1 parent 5341c12 commit ef87cfa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mendeley.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title",
"type"
],
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"abstract": {
"type": "string",
Expand Down
15 changes: 15 additions & 0 deletions test/features/mendeley.feature
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,21 @@ Rule: fromMendeley validates its input
"""

Rule: fromMendeley only consider fields that can be converted to RIS tags

Example: Additional properties in a Mendeley reference are ignored
When I convert this content from Mendeley
"""
[{"type": "journal", "title": "some title", "id": "61ab4234-1843-4101-9a16-d07398c2d750"}]
"""
Then I get this result
"""
TY - JOUR
TI - some title
ER -
"""

Rule: fromMendeley returns a string

Example: Empty string when input is an empty array
Expand Down

0 comments on commit ef87cfa

Please sign in to comment.