Skip to content

Commit aa79b84

Browse files
committed
fix: out-of-band service type
Signed-off-by: Timo Glastra <timo@animo.id>
1 parent 8ae07b9 commit aa79b84

File tree

4 files changed

+31
-14
lines changed

4 files changed

+31
-14
lines changed

aries_cloudcontroller/model/invitation_message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class InvitationMessage(BaseModel):
3232
requestsattach: Optional[List[AttachDecorator]] = Field(
3333
None, alias="requests~attach"
3434
)
35-
services: Optional[List[Dict]] = None
35+
services: Optional[List[Union[Dict, str]]] = None
3636

3737
def __init__(
3838
self,
@@ -42,7 +42,7 @@ def __init__(
4242
handshake_protocols: Optional[List[str]] = None,
4343
label: Optional[str] = None,
4444
requestsattach: Optional[List[AttachDecorator]] = None,
45-
services: Optional[List[Dict]] = None,
45+
services: Optional[List[Union[Dict, str]]] = None,
4646
**kwargs,
4747
):
4848
super().__init__(

generator/data/openapi.patch

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/generator/data/openapi.yml b/generator/data/openapi.yml
2-
index 29a1393..c86cd31 100644
2+
index 29a1393..7fea529 100644
33
--- a/generator/data/openapi.yml
44
+++ b/generator/data/openapi.yml
55
@@ -710,7 +710,9 @@ paths:
@@ -157,7 +157,22 @@ index 29a1393..c86cd31 100644
157157
example: 1640995199
158158
IndyRevRegDef:
159159
type: object
160-
@@ -7652,6 +7646,8 @@ components:
160+
@@ -6705,9 +6699,11 @@ components:
161+
type: string
162+
- did:sov:WgWxqztrNooG92RXvxSTWv
163+
items:
164+
- type: object
165+
- description: Either a DIDComm service object (as per RFC0067) or a DID
166+
- string.
167+
+ oneOf:
168+
+ - type: object
169+
+ description: Either a DIDComm service object (as per RFC0067) or a DID
170+
+ string.
171+
+ - type: string
172+
InvitationRecord:
173+
type: object
174+
properties:
175+
@@ -7652,6 +7648,8 @@ components:
161176
example: 0
162177
RevRegResult:
163178
type: object
@@ -166,15 +181,15 @@ index 29a1393..c86cd31 100644
166181
properties:
167182
result:
168183
$ref: '#/components/schemas/IssuerRevRegRecord'
169-
@@ -7819,6 +7815,7 @@ components:
184+
@@ -7819,6 +7817,7 @@ components:
170185
SchemaSendResult:
171186
required:
172187
- schema_id
173188
+ - schema
174189
type: object
175190
properties:
176191
schema:
177-
@@ -7969,10 +7966,7 @@ components:
192+
@@ -7969,10 +7968,7 @@ components:
178193
mechanism:
179194
type: string
180195
time:
@@ -185,31 +200,31 @@ index 29a1393..c86cd31 100644
185200
example: 1640995199
186201
TAAInfo:
187202
type: object
188-
@@ -8127,6 +8121,7 @@ components:
203+
@@ -8127,6 +8123,7 @@ components:
189204
example: 2021-12-31 23:59:59+00:00
190205
TxnOrCredentialDefinitionSendResult:
191206
type: object
192207
+ additionalProperties: false
193208
properties:
194209
sent:
195210
$ref: '#/components/schemas/CredentialDefinitionSendResult'
196-
@@ -8137,6 +8132,7 @@ components:
211+
@@ -8137,6 +8134,7 @@ components:
197212
- $ref: '#/components/schemas/TransactionRecord'
198213
TxnOrPublishRevocationsResult:
199214
type: object
200215
+ additionalProperties: false
201216
properties:
202217
sent:
203218
$ref: '#/components/schemas/PublishRevocations'
204-
@@ -8147,6 +8143,7 @@ components:
219+
@@ -8147,6 +8145,7 @@ components:
205220
- $ref: '#/components/schemas/TransactionRecord'
206221
TxnOrRevRegResult:
207222
type: object
208223
+ additionalProperties: false
209224
properties:
210225
sent:
211226
$ref: '#/components/schemas/RevRegResult'
212-
@@ -8157,6 +8154,7 @@ components:
227+
@@ -8157,6 +8156,7 @@ components:
213228
- $ref: '#/components/schemas/TransactionRecord'
214229
TxnOrSchemaSendResult:
215230
type: object

generator/data/openapi.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6699,9 +6699,11 @@ components:
66996699
type: string
67006700
- did:sov:WgWxqztrNooG92RXvxSTWv
67016701
items:
6702-
type: object
6703-
description: Either a DIDComm service object (as per RFC0067) or a DID
6704-
string.
6702+
oneOf:
6703+
- type: object
6704+
description: Either a DIDComm service object (as per RFC0067) or a DID
6705+
string.
6706+
- type: string
67056707
InvitationRecord:
67066708
type: object
67076709
properties:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def parse_requirements(filename: str):
1818
if __name__ == "__main__":
1919
setup(
2020
name=PACKAGE_NAME,
21-
version="0.5.1",
21+
version="0.5.2b1",
2222
description="A simple python package for controlling an aries agent through the admin-api interface",
2323
long_description=long_description,
2424
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)