Skip to content
Snippets Groups Projects
Commit 2a1d1794 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Camelcasing Result

parent 33d1b85b
No related branches found
No related tags found
No related merge requests found
Pipeline #726 failed
......@@ -24,17 +24,17 @@ along with VIPSCore-Python-Common. If not, see <http://www.nibio.no/licenses/>.
from datetime import datetime
from shapely.geometry import Point, Polygon
from pydantic import BaseModel, validator, constr
from pydantic import BaseModel, validator, constr, Field
from typing import Any, Union, ClassVar
import pytz
class Result(BaseModel):
"""Represents a set of DSS model result values for a given point in space (Point, Polygon, MultiPolygon) and time (Period or immediate) """
valid_time_start: datetime # TODO make sure it's always timezone aware
valid_time_end: datetime | None = ... # TODO make sure it's always timezone aware
valid_geometry: Any
warning_status: int
all_values: dict
valid_time_start: datetime = Field(alias="validTimeStart") # TODO make sure it's always timezone aware
valid_time_end: datetime = Field(..., alias="validTimeStart") # TODO make sure it's always timezone aware
valid_geometry: Any = Field(alias="validGeometry")
warning_status: int = Field(alias="warningStatus")
all_values: dict = Field(alias="allValues")
WARNING_STATUS_NO_WARNING: ClassVar[int] = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment