11diff --git a/generator/data/openapi.yml b/generator/data/openapi.yml
2- index 81a975a..647ae7e 100644
2+ index 81a975a..ab4c13c 100644
33--- a/generator/data/openapi.yml
44+++ b/generator/data/openapi.yml
5- @@ -705,7 +705,7 @@ paths:
5+ @@ -705,7 +705,9 @@ paths:
66 content:
77 application/json:
88 schema:
99- $ref: '#/components/schemas/TxnOrCredentialDefinitionSendResult'
10- + $ref: '#/components/schemas/CredentialDefinitionSendResult'
10+ + oneOf:
11+ + - $ref: '#/components/schemas/CredentialDefinitionSendResult'
12+ + - $ref: '#/components/schemas/TxnOrCredentialDefinitionSendResult'
1113 x-codegen-request-body-name: body
1214 operationId: publish_cred_def
1315 /credential-definitions/created:
14- @@ -3322,7 +3322,7 @@ paths:
16+ @@ -3322,7 +3324,9 @@ paths:
1517 content:
1618 application/json:
1719 schema:
1820- $ref: '#/components/schemas/TxnOrPublishRevocationsResult'
19- + $ref: '#/components/schemas/PublishRevocations'
21+ + oneOf:
22+ + - $ref: '#/components/schemas/PublishRevocations'
23+ + - $ref: '#/components/schemas/TxnOrPublishRevocationsResult'
2024 x-codegen-request-body-name: body
2125 operationId: publish_revocations
2226 /revocation/registries/created:
23- @@ -3433,7 +3433,7 @@ paths:
27+ @@ -3433,7 +3437,9 @@ paths:
2428 content:
2529 application/json:
2630 schema:
2731- $ref: '#/components/schemas/TxnOrRevRegResult'
28- + $ref: '#/components/schemas/RevRegResult'
32+ + oneOf:
33+ + - $ref: '#/components/schemas/RevRegResult'
34+ + - $ref: '#/components/schemas/TxnOrRevRegResult'
2935 operationId: publish_rev_reg_def
3036 /revocation/registry/{rev_reg_id}/entry:
3137 post:
32- @@ -3610,7 +3610,7 @@ paths:
38+ @@ -3610,7 +3616,9 @@ paths:
3339 content:
3440 application/json:
3541 schema:
3642- $ref: '#/components/schemas/TxnOrSchemaSendResult'
37- + $ref: '#/components/schemas/SchemaSendResult'
43+ + oneOf:
44+ + - $ref: '#/components/schemas/SchemaSendResult'
45+ + - $ref: '#/components/schemas/TxnOrSchemaSendResult'
3846 x-codegen-request-body-name: body
3947 operationId: publish_schema
4048 /schemas/created:
41- @@ -5045,7 +5045 ,8 @@ components:
49+ @@ -5045,7 +5053 ,8 @@ components:
4250 description: Tag within credential definition identifier
4351 example: tag
4452 type:
@@ -48,7 +56,7 @@ index 81a975a..647ae7e 100644
4856 description: 'Signature type: CL for Camenisch-Lysyanskaya'
4957 example: CL
5058 value:
51- @@ -5087,6 +5088 ,8 @@ components:
59+ @@ -5087,6 +5096 ,8 @@ components:
5260 example: default
5361 CredentialDefinitionSendResult:
5462 type: object
@@ -57,7 +65,7 @@ index 81a975a..647ae7e 100644
5765 properties:
5866 credential_definition_id:
5967 pattern: ^([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}):3:CL:(([1-9][0-9]*)|([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+)):(.+)?$
60- @@ -6111,18 +6114 ,14 @@ components:
68+ @@ -6111,18 +6122 ,14 @@ components:
6169 type: object
6270 properties:
6371 from:
@@ -76,7 +84,7 @@ index 81a975a..647ae7e 100644
7684 example: 1640995199
7785 IndyProofReqPredSpec:
7886 required:
79- @@ -6168,18 +6167 ,14 @@ components:
87+ @@ -6168,18 +6175 ,14 @@ components:
8088 type: object
8189 properties:
8290 from:
@@ -95,7 +103,7 @@ index 81a975a..647ae7e 100644
95103 example: 1640995199
96104 IndyProofRequest:
97105 type: object
98- @@ -6217,18 +6212 ,14 @@ components:
106+ @@ -6217,18 +6220 ,14 @@ components:
99107 type: object
100108 properties:
101109 from:
@@ -114,7 +122,7 @@ index 81a975a..647ae7e 100644
114122 example: 1640995199
115123 IndyProofRequestedProof:
116124 type: object
117- @@ -7394,6 +7385 ,8 @@ components:
125+ @@ -7394,6 +7393 ,8 @@ components:
118126 example: 0
119127 RevRegResult:
120128 type: object
@@ -123,15 +131,15 @@ index 81a975a..647ae7e 100644
123131 properties:
124132 result:
125133 $ref: '#/components/schemas/IssuerRevRegRecord'
126- @@ -7545,6 +7538 ,7 @@ components:
134+ @@ -7545,6 +7546 ,7 @@ components:
127135 SchemaSendResult:
128136 required:
129137 - schema_id
130138+ - schema
131139 type: object
132140 properties:
133141 schema:
134- @@ -7683,10 +7677 ,7 @@ components:
142+ @@ -7683,10 +7685 ,7 @@ components:
135143 mechanism:
136144 type: string
137145 time:
@@ -142,31 +150,31 @@ index 81a975a..647ae7e 100644
142150 example: 1640995199
143151 TAAInfo:
144152 type: object
145- @@ -7831,6 +7822 ,7 @@ components:
153+ @@ -7831,6 +7830 ,7 @@ components:
146154 example: 2021-12-31 23:59:59+00:00
147155 TxnOrCredentialDefinitionSendResult:
148156 type: object
149157+ additionalProperties: false
150158 properties:
151159 sent:
152160 $ref: '#/components/schemas/CredentialDefinitionSendResult'
153- @@ -7841,6 +7833 ,7 @@ components:
161+ @@ -7841,6 +7841 ,7 @@ components:
154162 - $ref: '#/components/schemas/TransactionRecord'
155163 TxnOrPublishRevocationsResult:
156164 type: object
157165+ additionalProperties: false
158166 properties:
159167 sent:
160168 $ref: '#/components/schemas/PublishRevocations'
161- @@ -7851,6 +7844 ,7 @@ components:
169+ @@ -7851,6 +7852 ,7 @@ components:
162170 - $ref: '#/components/schemas/TransactionRecord'
163171 TxnOrRevRegResult:
164172 type: object
165173+ additionalProperties: false
166174 properties:
167175 sent:
168176 $ref: '#/components/schemas/RevRegResult'
169- @@ -7861,6 +7855 ,7 @@ components:
177+ @@ -7861,6 +7863 ,7 @@ components:
170178 - $ref: '#/components/schemas/TransactionRecord'
171179 TxnOrSchemaSendResult:
172180 type: object
0 commit comments