|
1 | 1 | # generated by datamodel-codegen: |
2 | 2 | # filename: metadata-container-json-schema.json |
3 | | -# timestamp: 2025-09-03T09:21:45+00:00 |
| 3 | +# timestamp: 2025-09-03T09:57:17+00:00 |
4 | 4 |
|
5 | 5 | from __future__ import annotations |
6 | 6 |
|
@@ -41,10 +41,10 @@ class UseRestrictionType(Enum): |
41 | 41 |
|
42 | 42 |
|
43 | 43 | class UseRestrictionItem(DatadocBaseModel): |
44 | | - use_restriction: Optional[UseRestrictionType] = Field( |
| 44 | + use_restriction_type: Optional[UseRestrictionType] = Field( |
45 | 45 | None, description="Use restriction type", title="Use restriction type" |
46 | 46 | ) |
47 | | - use_restriction_date: Optional[AwareDatetime] = Field( |
| 47 | + use_restriction_date: Optional[date] = Field( |
48 | 48 | None, |
49 | 49 | description="Use restriction date, eg. the date (deadline) for when data must be deleted/anonymised.", |
50 | 50 | title="Use restriction date", |
@@ -203,8 +203,10 @@ class Dataset(DatadocBaseModel): |
203 | 203 | description="Description of the data set's spatial coverage", |
204 | 204 | title="Spatial coverage description", |
205 | 205 | ) |
206 | | - use_restriction: Optional[list[UseRestrictionItem]] = Field( |
207 | | - None, description="Use restriction", title="Use restriction" |
| 206 | + use_restrictions: Optional[list[UseRestrictionItem]] = Field( |
| 207 | + None, |
| 208 | + description="Any usage restrictions and usage restriction dates for the dataset, for example a deadline (date) for when the dataset should be deleted/anonymized.", |
| 209 | + title="Use restriction", |
208 | 210 | ) |
209 | 211 | custom_type: Optional[list[CustomTypeForDatasetMetadatum]] = Field( |
210 | 212 | None, |
@@ -386,8 +388,8 @@ class DatadocMetadata(DatadocBaseModel): |
386 | 388 | percentage_complete: Optional[int] = Field( |
387 | 389 | None, description="Percentage of obligatory metadata fields populated." |
388 | 390 | ) |
389 | | - document_version: Literal["6.0.1"] = Field( |
390 | | - "6.0.1", description="Version of this model" |
| 391 | + document_version: Literal["6.1.0"] = Field( |
| 392 | + "6.1.0", description="Version of this model" |
391 | 393 | ) |
392 | 394 | dataset: Optional[Dataset] = None |
393 | 395 | variables: Optional[list[Variable]] = None |
|
0 commit comments