Add extra=ignore to Station model for NOAA API resilience

This commit is contained in:
Ryan Malloy 2026-02-21 21:08:36 -07:00
parent 20059b9476
commit bb1d26332d

View File

@ -1,9 +1,11 @@
"""Pydantic models for NOAA CO-OPS API responses.""" """Pydantic models for NOAA CO-OPS API responses."""
from pydantic import BaseModel, Field from pydantic import BaseModel, ConfigDict, Field
class Station(BaseModel): class Station(BaseModel):
model_config = ConfigDict(extra="ignore")
id: str id: str
name: str name: str
state: str = "" state: str = ""