From 1fe5eb27d84bc55db10aaf33feff6f62edfa66d9 Mon Sep 17 00:00:00 2001 From: Luke Carr Date: Mon, 16 Dec 2024 15:50:47 +0000 Subject: [PATCH] feat!: replace `period` with `duration` in `MeasurementType` model --- src/edr_pydantic/parameter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/edr_pydantic/parameter.py b/src/edr_pydantic/parameter.py index c2a31f7..8102c59 100644 --- a/src/edr_pydantic/parameter.py +++ b/src/edr_pydantic/parameter.py @@ -15,9 +15,7 @@ class MeasurementType(EdrBaseModel): method: str # TODO: Add validation of ISO 8601 duration (including leading minus sign) - # TODO: Confusion in spec on the field name, duration versus period. - # See https://github.com/opengeospatial/ogcapi-environmental-data-retrieval/issues/560 - period: str + duration: str class Parameter(EdrBaseModel, extra="allow"):