diff --git a/src/mendeley.schema.json b/src/mendeley.schema.json index e55d52e..1a4188f 100644 --- a/src/mendeley.schema.json +++ b/src/mendeley.schema.json @@ -5,7 +5,7 @@ "title", "type" ], - "additionalProperties": false, + "additionalProperties": true, "properties": { "abstract": { "type": "string", diff --git a/test/features/mendeley.feature b/test/features/mendeley.feature index c8f244a..315ab57 100644 --- a/test/features/mendeley.feature +++ b/test/features/mendeley.feature @@ -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