From 84a5cd169c5126bf75f2792776506d3770511d70 Mon Sep 17 00:00:00 2001 From: "dapla-bot[bot]" <143391972+dapla-bot[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:24:36 +0000 Subject: [PATCH] [GENERATE] Pydantic models from JSON Schema --- generated/python/datadoc_model/datadoc_model/model.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/generated/python/datadoc_model/datadoc_model/model.py b/generated/python/datadoc_model/datadoc_model/model.py index c5b9d37..a055e5b 100644 --- a/generated/python/datadoc_model/datadoc_model/model.py +++ b/generated/python/datadoc_model/datadoc_model/model.py @@ -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 @@ -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", @@ -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",