From 7484a020e1ca673f63c1f3ca7aec242559a8ca75 Mon Sep 17 00:00:00 2001 From: hjlarry Date: Tue, 11 Nov 2025 14:05:11 +0800 Subject: [PATCH] fix(trigger): subscription schema use bool field cause pydantic error --- api/core/trigger/entities/entities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/trigger/entities/entities.py b/api/core/trigger/entities/entities.py index 46090b5886..49e24fe8b8 100644 --- a/api/core/trigger/entities/entities.py +++ b/api/core/trigger/entities/entities.py @@ -208,7 +208,7 @@ class SubscriptionBuilder(BaseModel): endpoint_id: str = Field(..., description="The endpoint id of the subscription builder") parameters: Mapping[str, Any] = Field(..., description="The parameters of the subscription builder") properties: Mapping[str, Any] = Field(..., description="The properties of the subscription builder") - credentials: Mapping[str, str] = Field(..., description="The credentials of the subscription builder") + credentials: Mapping[str, Any] = Field(..., description="The credentials of the subscription builder") credential_type: str | None = Field(default=None, description="The credential type of the subscription builder") credential_expires_at: int | None = Field( default=None, description="The credential expires at of the subscription builder" @@ -227,7 +227,7 @@ class SubscriptionBuilderUpdater(BaseModel): name: str | None = Field(default=None, description="The name of the subscription builder") parameters: Mapping[str, Any] | None = Field(default=None, description="The parameters of the subscription builder") properties: Mapping[str, Any] | None = Field(default=None, description="The properties of the subscription builder") - credentials: Mapping[str, str] | None = Field( + credentials: Mapping[str, Any] | None = Field( default=None, description="The credentials of the subscription builder" ) credential_type: str | None = Field(default=None, description="The credential type of the subscription builder")