Skip to content

Commit

Permalink
feat!: replace period with duration in MeasurementType model
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-lukecarr committed Dec 16, 2024
1 parent ca0ab14 commit 1fe5eb2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/edr_pydantic/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 1fe5eb2

Please sign in to comment.