Skip to content

Deprecate fields and clean up validation#593

Merged
joemoorhouse merged 1 commit into
os-climate:mainfrom
arfima:clean-hazard-data-request
Jun 4, 2026
Merged

Deprecate fields and clean up validation#593
joemoorhouse merged 1 commit into
os-climate:mainfrom
arfima:clean-hazard-data-request

Conversation

@YulianLC
Copy link
Copy Markdown
Contributor

In HazardDataResponseItem, we renamed the fields event_type -> hazard_type and model -> indicator_id for clarity. We maintain backward compatibility by exposing the old fields as deprecated computed fields.

We also cleaned up hazard type validation in hazard data requests by removing the dependency on a hazard-name enum and validating against hazard classes instead (single source of truth).

Co-authored-by: Martxel Aranzadi Olazabal maranzadi@arfima.com
Co-authored-by: Yulian Lyubomirov Cenov ycenov@arfima.com
Signed-off-by: Juan Román Roche jroman@arfimaconsulting.com

@YulianLC YulianLC marked this pull request as ready for review May 22, 2026 10:25
@YulianLC YulianLC requested a review from joemoorhouse as a code owner May 22, 2026 10:25
@jroman-ak jroman-ak force-pushed the clean-hazard-data-request branch from ca4b878 to 82eae94 Compare May 25, 2026 09:15
Signed-off-by: Juan Roman <jroman@arfimaconsulting.com>
@jroman-ak jroman-ak force-pushed the clean-hazard-data-request branch from 82eae94 to 031e1ed Compare June 3, 2026 16:05
@joemoorhouse joemoorhouse merged commit 0094017 into os-climate:main Jun 4, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants