Skip to content

Commit

Permalink
include removal of accrualPeriodicity
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Jan 8, 2024
1 parent bdbc0b1 commit 5da5f0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
9 changes: 0 additions & 9 deletions hdr_schemata/models/HDRUK/2.1.3/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1607,14 +1607,6 @@
"Temporal": {
"additionalProperties": false,
"properties": {
"accrualPeriodicity": {
"allOf": [
{
"$ref": "#/$defs/Periodicity"
}
],
"description": "Please indicate the frequency of distribution release. If a dataset is distributed regularly please choose a distribution release periodicity from the constrained list and indicate the next release date. When the release date becomes historical, a new release date will be calculated based on the publishing periodicity. If a dataset has been published and will remain static please indicate that it is static and indicated when it was released. If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null. If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null. Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/"
},
"distributionReleaseDate": {
"anyOf": [
{
Expand Down Expand Up @@ -1691,7 +1683,6 @@
}
},
"required": [
"accrualPeriodicity",
"startDate",
"timeLag",
"publishingFrequency"
Expand Down
File renamed without changes.
9 changes: 0 additions & 9 deletions hdr_schemata/models/HDRUK/latest/dev/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1607,14 +1607,6 @@
"Temporal": {
"additionalProperties": false,
"properties": {
"accrualPeriodicity": {
"allOf": [
{
"$ref": "#/$defs/Periodicity"
}
],
"description": "Please indicate the frequency of distribution release. If a dataset is distributed regularly please choose a distribution release periodicity from the constrained list and indicate the next release date. When the release date becomes historical, a new release date will be calculated based on the publishing periodicity. If a dataset has been published and will remain static please indicate that it is static and indicated when it was released. If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null. If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null. Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/"
},
"distributionReleaseDate": {
"anyOf": [
{
Expand Down Expand Up @@ -1691,7 +1683,6 @@
}
},
"required": [
"accrualPeriodicity",
"startDate",
"timeLag",
"publishingFrequency"
Expand Down
4 changes: 4 additions & 0 deletions hdr_schemata/models/HDRUK/v2_1_3/Temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from hdr_schemata.definitions.HDRUK import Periodicity
from hdr_schemata.models.HDRUK.base.Temporal import Temporal as BaseTemporal
from pydantic import BaseModel, Field
from hdr_schemata.models import remove_fields_from_cls


class Temporal(BaseTemporal):
Expand All @@ -10,3 +11,6 @@ class Temporal(BaseTemporal):
title="Publishing Frequency",
description="Please indicate the frequency of distribution release. If a dataset is distributed regularly please choose a distribution release periodicity from the constrained list and indicate the next release date. When the release date becomes historical, a new release date will be calculated based on the publishing periodicity. If a dataset has been published and will remain static please indicate that it is static and indicated when it was released. If a dataset is released on an irregular basis or “on-demand” please indicate that it is Irregular and leave release date as null. If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null. Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/",
)


remove_fields_from_cls(Temporal, ["accrualPeriodicity"])

0 comments on commit 5da5f0b

Please sign in to comment.