From 86df04d594a36bc6e5d9de843652f9ea4055f733 Mon Sep 17 00:00:00 2001 From: ff137 Date: Mon, 27 Nov 2023 11:36:52 +0200 Subject: [PATCH] optional fields in service decorator --- aries_cloudcontroller/models/service_decorator.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aries_cloudcontroller/models/service_decorator.py b/aries_cloudcontroller/models/service_decorator.py index 99a6589d..f9b21192 100644 --- a/aries_cloudcontroller/models/service_decorator.py +++ b/aries_cloudcontroller/models/service_decorator.py @@ -34,13 +34,14 @@ class ServiceDecorator(BaseModel): ServiceDecorator """ # noqa: E501 - recipient_keys: List[Annotated[str, Field(strict=True)]] = Field( - description="List of recipient keys", alias="recipientKeys" + recipient_keys: Optional[List[Annotated[str, Field(strict=True)]]] = Field( + default=None, description="List of recipient keys", alias="recipientKeys" ) routing_keys: Optional[List[Annotated[str, Field(strict=True)]]] = Field( default=None, description="List of routing keys", alias="routingKeys" ) - service_endpoint: StrictStr = Field( + service_endpoint: Optional[StrictStr] = Field( + default=None, description="Service endpoint at which to reach this agent", alias="serviceEndpoint", )