Skip to content

Commit

Permalink
[GENERATE] Pydantic models from JSON Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dapla-bot[bot] committed Apr 25, 2024
1 parent 6d67c86 commit 84a5cd1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions generated/python/datadoc_model/datadoc_model/model.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# generated by datamodel-codegen:
# filename: metadata-container-json-schema.json
# timestamp: 2024-04-25T13:22:55+00:00
# timestamp: 2024-04-25T13:24:36+00:00

from __future__ import annotations

from datetime import date
from enum import Enum
from typing import Any, Literal, Optional, Union
from uuid import UUID
Expand Down Expand Up @@ -300,12 +301,12 @@ class Dataset(DatadocBaseModel):
description="Last change made by identifiable person. ",
title="Metadata last updated by",
)
contains_data_from: Optional[AwareDatetime] = Field(
contains_data_from: Optional[date] = Field(
None,
description="The data set contains data from date/time",
title="Contains data from",
)
contains_data_until: Optional[AwareDatetime] = Field(
contains_data_until: Optional[date] = Field(
None,
description="The data set contains data up until date/time",
title="Contains data up until",
Expand Down Expand Up @@ -422,12 +423,12 @@ class Variable(DatadocBaseModel):
description="Unique SSB identifier for the instance variable in the data set",
title="Identifier",
)
contains_data_from: Optional[AwareDatetime] = Field(
contains_data_from: Optional[date] = Field(
None,
description="The instance variable in the data set contains data from and including this date. This can be useful information for data sets that contain many instance variables in addition to data for many periods/years. In many cases, it will then be the case that some variables only contain data for the most recent periods/years, e.g. if the entire data set contains data from 1970 to 2020, while some instance variables only contain data from 1998 onwards.",
title="Contains data from",
)
contains_data_until: Optional[AwareDatetime] = Field(
contains_data_until: Optional[date] = Field(
None,
description="The instance variable in the data set contains data up to and including this date. This can be useful information for data sets that contain many instance variables in addition to data for many periods/years. In many cases, it will then be the case that some of the instance variables in the data set are terminated (no longer updated) after a given point in time.",
title="Contains data up until",
Expand Down

0 comments on commit 84a5cd1

Please sign in to comment.