Skip to content

Commit b111640

Browse files
committed
Fixed person_schema.json.
1 parent 50e7d2a commit b111640

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

isatools/isajson/validate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
from io import StringIO
1515
from pathlib import Path
1616

17-
from jsonschema import Draft4Validator, Draft202012Validator, FormatChecker, ValidationError
17+
from jsonschema import Draft202012Validator, FormatChecker, ValidationError
1818
from referencing import Registry
19-
from referencing.jsonschema import DRAFT4, DRAFT202012
19+
from referencing.jsonschema import DRAFT202012
2020

2121
from isatools.isajson.load import load
2222

isatools/resources/schemas/isa_model_version_1_0_schemas/core/person_schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
"lastName" : { "type" : "string"},
1313
"firstName" : { "type" : "string"},
1414
"midInitials" : { "type" : "string" },
15-
"email" : { "type" : "string"},
15+
"email" : {
16+
"anyOf": [
17+
{ "type" : "string", "format": "email" },
18+
{ "type" : "string", "maxLength": 0 },
19+
{ "type": "null" }
20+
]
21+
},
1622
"phone" : { "type": "string"},
1723
"fax" : { "type" : "string" },
1824
"address" : { "type" : "string" },

0 commit comments

Comments
 (0)