Skip to content

Commit

Permalink
Remove escaping (\) of : in 2 identifiers regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Feb 24, 2025
1 parent f0be592 commit b89b6f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandischema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ class Person(Contributor):
class Software(DandiBaseModel):
identifier: Optional[RRID] = Field(
None,
pattern=r"^RRID\:.*",
pattern=r"^RRID:.*",
title="Research resource identifier",
description="RRID of the software from scicrunch.org.",
json_schema_extra={"nskey": "schema"},
Expand Down Expand Up @@ -1612,7 +1612,7 @@ def contributor_musthave_contact(
identifier: DANDI = Field(
title="Dandiset identifier",
description="A Dandiset identifier that can be resolved by identifiers.org.",
pattern=r"^DANDI\:\d{6}$",
pattern=r"^DANDI:\d{6}$",
json_schema_extra={"readOnly": True, "nskey": "schema"},
)
name: str = Field(
Expand Down

0 comments on commit b89b6f2

Please sign in to comment.