Skip to content

Commit eb76377

Browse files
authored
Merge pull request #271 from dandi/improve-name-field-vjsf
Use `title` in place of `examples`
2 parents 395bc5b + 30586fd commit eb76377

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dandischema/consts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DANDI_SCHEMA_VERSION = "0.6.8"
1+
DANDI_SCHEMA_VERSION = "0.6.9"
22
ALLOWED_INPUT_SCHEMAS = [
33
"0.4.4",
44
"0.5.1",
@@ -11,6 +11,7 @@
1111
"0.6.5",
1212
"0.6.6",
1313
"0.6.7",
14+
"0.6.8",
1415
]
1516

1617
# ATM we allow only for a single target version which is current

dandischema/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,10 +946,10 @@ class Person(Contributor):
946946
json_schema_extra={"nskey": "schema"},
947947
)
948948
name: str = Field(
949+
title="Use Last, First. Example: Lovelace, Augusta Ada",
949950
description="Use the format: familyname, given names ...",
950951
pattern=NAME_PATTERN,
951952
json_schema_extra={"nskey": "schema"},
952-
examples=["Lovelace, Augusta Ada", "Smith, John", "Chan, Kong-sang"],
953953
)
954954
affiliation: Optional[List[Affiliation]] = Field(
955955
None,

0 commit comments

Comments
 (0)