Add extra=ignore to Station model for NOAA API resilience
This commit is contained in:
parent
20059b9476
commit
bb1d26332d
@ -1,9 +1,11 @@
|
||||
"""Pydantic models for NOAA CO-OPS API responses."""
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
|
||||
class Station(BaseModel):
|
||||
model_config = ConfigDict(extra="ignore")
|
||||
|
||||
id: str
|
||||
name: str
|
||||
state: str = ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user