mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #389 from Hestia-Homes/remote-assessment-api
updated the typing of the event_type field
This commit is contained in:
commit
a28c669d0b
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from pydantic import BaseModel, Field, BeforeValidator
|
||||
from typing import Annotated, List, Optional
|
||||
from typing import Annotated, List, Optional, Literal
|
||||
|
||||
# Example constants for validation
|
||||
TYPICAL_MEASURE_TYPES = [
|
||||
|
|
@ -95,4 +95,4 @@ class PlanTriggerRequest(BaseModel):
|
|||
|
||||
# When performing a remote assessment, if this has been set, it will allow the engine to
|
||||
# pull data from the find my epc website, to utilise as part of a remote assessment
|
||||
event_type: Optional[float] = "remote_assessment",
|
||||
event_type: Optional[Literal["remote_assessment"]] = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue