diff --git a/dandischema/models.py b/dandischema/models.py index 7acc8fb..a899563 100644 --- a/dandischema/models.py +++ b/dandischema/models.py @@ -1657,6 +1657,11 @@ class PublishedDandiset(Dandiset, Publishable): description="Permalink to the Dandiset.", json_schema_extra={"readOnly": True, "nskey": "schema"}, ) + releaseNotes: Optional[str] = Field( + None, + description="The description of the release", + json_schema_extra={"readOnly": True, "nskey": "schema"}, + ) schemaKey: Literal["Dandiset"] = Field( "Dandiset", validate_default=True, json_schema_extra={"readOnly": True} diff --git a/dandischema/tests/test_models.py b/dandischema/tests/test_models.py index b4cd299..91d6de8 100644 --- a/dandischema/tests/test_models.py +++ b/dandischema/tests/test_models.py @@ -450,6 +450,7 @@ def test_dantimeta_1() -> None: meta_dict["version"] = "0.0.0" meta_dict.update(_basic_publishmeta(dandi_id="999999")) meta_dict["assetsSummary"].update(**{"numberOfBytes": 1, "numberOfFiles": 1}) + meta_dict["releaseNotes"] = "Releasing during testing" PublishedDandiset(**meta_dict)