Skip to content

Commit

Permalink
optional fields in service decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Nov 27, 2023
1 parent 5793aae commit 86df04d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aries_cloudcontroller/models/service_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down

0 comments on commit 86df04d

Please sign in to comment.