Skip to content

Commit d31438c

Browse files
committed
fix: issuev2 send proposal missing conn id
fixes #62 Signed-off-by: Timo Glastra <timo@animo.id>
1 parent d57dd0e commit d31438c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

aries_cloudcontroller/api/issue_credential_v2_0.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def send_offer_free(
121121
)
122122

123123
async def send_proposal(
124-
self, *, body: Optional[V20IssueCredSchemaCore] = None
124+
self, *, body: Optional[V20CredSendRequest] = None
125125
) -> V20CredExRecord:
126126
"""Send issuer a credential proposal"""
127127
return await self.__send_proposal(
@@ -228,7 +228,7 @@ def __send_offer_free(
228228
@json
229229
@post("/issue-credential-2.0/send-proposal")
230230
def __send_proposal(
231-
self, *, body: Body(type=V20IssueCredSchemaCore) = {}
231+
self, *, body: Body(type=V20CredSendRequest) = {}
232232
) -> V20CredExRecord:
233233
"""Internal uplink method for send_proposal"""
234234

generator/data/openapi.patch

Lines changed: 10 additions & 1 deletion
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 4582107..fbc80b8 100644
2+
index 4582107..110b7a5 100644
33
--- a/generator/data/openapi.yml
44
+++ b/generator/data/openapi.yml
55
@@ -705,7 +705,7 @@ paths:
@@ -11,6 +11,15 @@ index 4582107..fbc80b8 100644
1111
x-codegen-request-body-name: body
1212
operationId: publish_cred_def
1313
/credential-definitions/created:
14+
@@ -1446,7 +1446,7 @@ paths:
15+
content:
16+
application/json:
17+
schema:
18+
- $ref: '#/components/schemas/V20IssueCredSchemaCore'
19+
+ $ref: '#/components/schemas/V20CredSendRequest'
20+
required: false
21+
responses:
22+
200:
1423
@@ -3263,7 +3263,7 @@ paths:
1524
content:
1625
application/json:

generator/data/openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ paths:
14461446
content:
14471447
application/json:
14481448
schema:
1449-
$ref: '#/components/schemas/V20IssueCredSchemaCore'
1449+
$ref: '#/components/schemas/V20CredSendRequest'
14501450
required: false
14511451
responses:
14521452
200:

0 commit comments

Comments
 (0)