Skip to content

Commit

Permalink
Merge pull request #271 from dandi/improve-name-field-vjsf
Browse files Browse the repository at this point in the history
Use `title` in place of `examples`
  • Loading branch information
satra authored Jan 7, 2025
2 parents 395bc5b + 30586fd commit eb76377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dandischema/consts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DANDI_SCHEMA_VERSION = "0.6.8"
DANDI_SCHEMA_VERSION = "0.6.9"
ALLOWED_INPUT_SCHEMAS = [
"0.4.4",
"0.5.1",
Expand All @@ -11,6 +11,7 @@
"0.6.5",
"0.6.6",
"0.6.7",
"0.6.8",
]

# ATM we allow only for a single target version which is current
Expand Down
2 changes: 1 addition & 1 deletion dandischema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,10 @@ class Person(Contributor):
json_schema_extra={"nskey": "schema"},
)
name: str = Field(
title="Use Last, First. Example: Lovelace, Augusta Ada",
description="Use the format: familyname, given names ...",
pattern=NAME_PATTERN,
json_schema_extra={"nskey": "schema"},
examples=["Lovelace, Augusta Ada", "Smith, John", "Chan, Kong-sang"],
)
affiliation: Optional[List[Affiliation]] = Field(
None,
Expand Down

0 comments on commit eb76377

Please sign in to comment.