Skip to content

Commit aa7c43f

Browse files
committed
fix: json_ field in AttachDecoratorData can either be a dict, or a list of dict
1 parent 6e31e48 commit aa7c43f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aries_cloudcontroller/model/attach_decorator_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ class AttachDecoratorData(BaseModel):
2525
"""
2626

2727
base64: Optional[str] = None
28-
json_: Optional[Dict[str, Any]] = Field(None, alias="json")
28+
json_: Optional[Union[Dict[str, Any], List[Dict[str, Any]]]] = Field(
29+
None, alias="json"
30+
)
2931
jws: Optional[AttachDecoratorDataJWS] = None
3032
links: Optional[List[str]] = None
3133
sha256: Optional[str] = None

0 commit comments

Comments
 (0)