updated the typing of the event_type field

This commit is contained in:
Khalim Conn-Kowlessar 2025-04-14 14:33:58 +01:00
parent bea2e403d6
commit 6f4d91440f

View file

@ -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