Skip to content

Commit

Permalink
Allow the latest value to be empty
Browse files Browse the repository at this point in the history
  Fixes #349
  • Loading branch information
caparker committed Apr 30, 2024
1 parent 8df45d9 commit 46dc1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/models/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Parameter(BaseModel):
unit: str
count: int
average: float
last_value: float = Field(..., alias="lastValue")
parameter: str
last_value: float | None = Field(None, alias="lastValue")
display_name: str | None = Field(None, alias="displayName")
last_updated: str = Field(..., alias="lastUpdated")
parameter_id: int = Field(..., alias="parameterId")
Expand Down

0 comments on commit 46dc1f4

Please sign in to comment.