1
1
diff --git a/generator/data/openapi.yml b/generator/data/openapi.yml
2
- index 81a975a..647ae7e 100644
2
+ index 81a975a..ab4c13c 100644
3
3
--- a/generator/data/openapi.yml
4
4
+++ b/generator/data/openapi.yml
5
- @@ -705,7 +705,7 @@ paths:
5
+ @@ -705,7 +705,9 @@ paths:
6
6
content:
7
7
application/json:
8
8
schema:
9
9
- $ref: '#/components/schemas/TxnOrCredentialDefinitionSendResult'
10
- + $ref: '#/components/schemas/CredentialDefinitionSendResult'
10
+ + oneOf:
11
+ + - $ref: '#/components/schemas/CredentialDefinitionSendResult'
12
+ + - $ref: '#/components/schemas/TxnOrCredentialDefinitionSendResult'
11
13
x-codegen-request-body-name: body
12
14
operationId: publish_cred_def
13
15
/credential-definitions/created:
14
- @@ -3322,7 +3322,7 @@ paths:
16
+ @@ -3322,7 +3324,9 @@ paths:
15
17
content:
16
18
application/json:
17
19
schema:
18
20
- $ref: '#/components/schemas/TxnOrPublishRevocationsResult'
19
- + $ref: '#/components/schemas/PublishRevocations'
21
+ + oneOf:
22
+ + - $ref: '#/components/schemas/PublishRevocations'
23
+ + - $ref: '#/components/schemas/TxnOrPublishRevocationsResult'
20
24
x-codegen-request-body-name: body
21
25
operationId: publish_revocations
22
26
/revocation/registries/created:
23
- @@ -3433,7 +3433,7 @@ paths:
27
+ @@ -3433,7 +3437,9 @@ paths:
24
28
content:
25
29
application/json:
26
30
schema:
27
31
- $ref: '#/components/schemas/TxnOrRevRegResult'
28
- + $ref: '#/components/schemas/RevRegResult'
32
+ + oneOf:
33
+ + - $ref: '#/components/schemas/RevRegResult'
34
+ + - $ref: '#/components/schemas/TxnOrRevRegResult'
29
35
operationId: publish_rev_reg_def
30
36
/revocation/registry/{rev_reg_id}/entry:
31
37
post:
32
- @@ -3610,7 +3610,7 @@ paths:
38
+ @@ -3610,7 +3616,9 @@ paths:
33
39
content:
34
40
application/json:
35
41
schema:
36
42
- $ref: '#/components/schemas/TxnOrSchemaSendResult'
37
- + $ref: '#/components/schemas/SchemaSendResult'
43
+ + oneOf:
44
+ + - $ref: '#/components/schemas/SchemaSendResult'
45
+ + - $ref: '#/components/schemas/TxnOrSchemaSendResult'
38
46
x-codegen-request-body-name: body
39
47
operationId: publish_schema
40
48
/schemas/created:
41
- @@ -5045,7 +5045 ,8 @@ components:
49
+ @@ -5045,7 +5053 ,8 @@ components:
42
50
description: Tag within credential definition identifier
43
51
example: tag
44
52
type:
@@ -48,7 +56,7 @@ index 81a975a..647ae7e 100644
48
56
description: 'Signature type: CL for Camenisch-Lysyanskaya'
49
57
example: CL
50
58
value:
51
- @@ -5087,6 +5088 ,8 @@ components:
59
+ @@ -5087,6 +5096 ,8 @@ components:
52
60
example: default
53
61
CredentialDefinitionSendResult:
54
62
type: object
@@ -57,7 +65,7 @@ index 81a975a..647ae7e 100644
57
65
properties:
58
66
credential_definition_id:
59
67
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:
61
69
type: object
62
70
properties:
63
71
from:
@@ -76,7 +84,7 @@ index 81a975a..647ae7e 100644
76
84
example: 1640995199
77
85
IndyProofReqPredSpec:
78
86
required:
79
- @@ -6168,18 +6167 ,14 @@ components:
87
+ @@ -6168,18 +6175 ,14 @@ components:
80
88
type: object
81
89
properties:
82
90
from:
@@ -95,7 +103,7 @@ index 81a975a..647ae7e 100644
95
103
example: 1640995199
96
104
IndyProofRequest:
97
105
type: object
98
- @@ -6217,18 +6212 ,14 @@ components:
106
+ @@ -6217,18 +6220 ,14 @@ components:
99
107
type: object
100
108
properties:
101
109
from:
@@ -114,7 +122,7 @@ index 81a975a..647ae7e 100644
114
122
example: 1640995199
115
123
IndyProofRequestedProof:
116
124
type: object
117
- @@ -7394,6 +7385 ,8 @@ components:
125
+ @@ -7394,6 +7393 ,8 @@ components:
118
126
example: 0
119
127
RevRegResult:
120
128
type: object
@@ -123,15 +131,15 @@ index 81a975a..647ae7e 100644
123
131
properties:
124
132
result:
125
133
$ref: '#/components/schemas/IssuerRevRegRecord'
126
- @@ -7545,6 +7538 ,7 @@ components:
134
+ @@ -7545,6 +7546 ,7 @@ components:
127
135
SchemaSendResult:
128
136
required:
129
137
- schema_id
130
138
+ - schema
131
139
type: object
132
140
properties:
133
141
schema:
134
- @@ -7683,10 +7677 ,7 @@ components:
142
+ @@ -7683,10 +7685 ,7 @@ components:
135
143
mechanism:
136
144
type: string
137
145
time:
@@ -142,31 +150,31 @@ index 81a975a..647ae7e 100644
142
150
example: 1640995199
143
151
TAAInfo:
144
152
type: object
145
- @@ -7831,6 +7822 ,7 @@ components:
153
+ @@ -7831,6 +7830 ,7 @@ components:
146
154
example: 2021-12-31 23:59:59+00:00
147
155
TxnOrCredentialDefinitionSendResult:
148
156
type: object
149
157
+ additionalProperties: false
150
158
properties:
151
159
sent:
152
160
$ref: '#/components/schemas/CredentialDefinitionSendResult'
153
- @@ -7841,6 +7833 ,7 @@ components:
161
+ @@ -7841,6 +7841 ,7 @@ components:
154
162
- $ref: '#/components/schemas/TransactionRecord'
155
163
TxnOrPublishRevocationsResult:
156
164
type: object
157
165
+ additionalProperties: false
158
166
properties:
159
167
sent:
160
168
$ref: '#/components/schemas/PublishRevocations'
161
- @@ -7851,6 +7844 ,7 @@ components:
169
+ @@ -7851,6 +7852 ,7 @@ components:
162
170
- $ref: '#/components/schemas/TransactionRecord'
163
171
TxnOrRevRegResult:
164
172
type: object
165
173
+ additionalProperties: false
166
174
properties:
167
175
sent:
168
176
$ref: '#/components/schemas/RevRegResult'
169
- @@ -7861,6 +7855 ,7 @@ components:
177
+ @@ -7861,6 +7863 ,7 @@ components:
170
178
- $ref: '#/components/schemas/TransactionRecord'
171
179
TxnOrSchemaSendResult:
172
180
type: object
0 commit comments