Skip to content

Commit af7261b

Browse files
committed
fix: int32 out of range
Fixes #65 See issue in ACA-Py: openwallet-foundation/acapy#1485 Signed-off-by: Timo Glastra <timo@animo.id>
1 parent acee85a commit af7261b

File tree

2 files changed

+65
-20
lines changed

2 files changed

+65
-20
lines changed

generator/data/openapi.patch

Lines changed: 65 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 81a975a..a7d9cd9 100644
2+
index 81a975a..647ae7e 100644
33
--- a/generator/data/openapi.yml
44
+++ b/generator/data/openapi.yml
55
@@ -705,7 +705,7 @@ paths:
@@ -57,7 +57,64 @@ index 81a975a..a7d9cd9 100644
5757
properties:
5858
credential_definition_id:
5959
pattern: ^([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}):3:CL:(([1-9][0-9]*)|([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+)):(.+)?$
60-
@@ -7394,6 +7397,8 @@ components:
60+
@@ -6111,18 +6114,14 @@ components:
61+
type: object
62+
properties:
63+
from:
64+
- maximum: 18446744073709551615
65+
minimum: 0
66+
type: integer
67+
description: Earliest time of interest in non-revocation interval
68+
- format: int32
69+
example: 1640995199
70+
to:
71+
- maximum: 18446744073709551615
72+
minimum: 0
73+
type: integer
74+
description: Latest time of interest in non-revocation interval
75+
- format: int32
76+
example: 1640995199
77+
IndyProofReqPredSpec:
78+
required:
79+
@@ -6168,18 +6167,14 @@ components:
80+
type: object
81+
properties:
82+
from:
83+
- maximum: 18446744073709551615
84+
minimum: 0
85+
type: integer
86+
description: Earliest time of interest in non-revocation interval
87+
- format: int32
88+
example: 1640995199
89+
to:
90+
- maximum: 18446744073709551615
91+
minimum: 0
92+
type: integer
93+
description: Latest time of interest in non-revocation interval
94+
- format: int32
95+
example: 1640995199
96+
IndyProofRequest:
97+
type: object
98+
@@ -6217,18 +6212,14 @@ components:
99+
type: object
100+
properties:
101+
from:
102+
- maximum: 18446744073709551615
103+
minimum: 0
104+
type: integer
105+
description: Earliest time of interest in non-revocation interval
106+
- format: int32
107+
example: 1640995199
108+
to:
109+
- maximum: 18446744073709551615
110+
minimum: 0
111+
type: integer
112+
description: Latest time of interest in non-revocation interval
113+
- format: int32
114+
example: 1640995199
115+
IndyProofRequestedProof:
116+
type: object
117+
@@ -7394,6 +7385,8 @@ components:
61118
example: 0
62119
RevRegResult:
63120
type: object
@@ -66,15 +123,15 @@ index 81a975a..a7d9cd9 100644
66123
properties:
67124
result:
68125
$ref: '#/components/schemas/IssuerRevRegRecord'
69-
@@ -7545,6 +7550,7 @@ components:
126+
@@ -7545,6 +7538,7 @@ components:
70127
SchemaSendResult:
71128
required:
72129
- schema_id
73130
+ - schema
74131
type: object
75132
properties:
76133
schema:
77-
@@ -7683,10 +7689,7 @@ components:
134+
@@ -7683,10 +7677,7 @@ components:
78135
mechanism:
79136
type: string
80137
time:
@@ -85,31 +142,31 @@ index 81a975a..a7d9cd9 100644
85142
example: 1640995199
86143
TAAInfo:
87144
type: object
88-
@@ -7831,6 +7834,7 @@ components:
145+
@@ -7831,6 +7822,7 @@ components:
89146
example: 2021-12-31 23:59:59+00:00
90147
TxnOrCredentialDefinitionSendResult:
91148
type: object
92149
+ additionalProperties: false
93150
properties:
94151
sent:
95152
$ref: '#/components/schemas/CredentialDefinitionSendResult'
96-
@@ -7841,6 +7845,7 @@ components:
153+
@@ -7841,6 +7833,7 @@ components:
97154
- $ref: '#/components/schemas/TransactionRecord'
98155
TxnOrPublishRevocationsResult:
99156
type: object
100157
+ additionalProperties: false
101158
properties:
102159
sent:
103160
$ref: '#/components/schemas/PublishRevocations'
104-
@@ -7851,6 +7856,7 @@ components:
161+
@@ -7851,6 +7844,7 @@ components:
105162
- $ref: '#/components/schemas/TransactionRecord'
106163
TxnOrRevRegResult:
107164
type: object
108165
+ additionalProperties: false
109166
properties:
110167
sent:
111168
$ref: '#/components/schemas/RevRegResult'
112-
@@ -7861,6 +7867,7 @@ components:
169+
@@ -7861,6 +7855,7 @@ components:
113170
- $ref: '#/components/schemas/TransactionRecord'
114171
TxnOrSchemaSendResult:
115172
type: object

generator/data/openapi.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6114,18 +6114,14 @@ components:
61146114
type: object
61156115
properties:
61166116
from:
6117-
maximum: 18446744073709551615
61186117
minimum: 0
61196118
type: integer
61206119
description: Earliest time of interest in non-revocation interval
6121-
format: int32
61226120
example: 1640995199
61236121
to:
6124-
maximum: 18446744073709551615
61256122
minimum: 0
61266123
type: integer
61276124
description: Latest time of interest in non-revocation interval
6128-
format: int32
61296125
example: 1640995199
61306126
IndyProofReqPredSpec:
61316127
required:
@@ -6171,18 +6167,14 @@ components:
61716167
type: object
61726168
properties:
61736169
from:
6174-
maximum: 18446744073709551615
61756170
minimum: 0
61766171
type: integer
61776172
description: Earliest time of interest in non-revocation interval
6178-
format: int32
61796173
example: 1640995199
61806174
to:
6181-
maximum: 18446744073709551615
61826175
minimum: 0
61836176
type: integer
61846177
description: Latest time of interest in non-revocation interval
6185-
format: int32
61866178
example: 1640995199
61876179
IndyProofRequest:
61886180
type: object
@@ -6220,18 +6212,14 @@ components:
62206212
type: object
62216213
properties:
62226214
from:
6223-
maximum: 18446744073709551615
62246215
minimum: 0
62256216
type: integer
62266217
description: Earliest time of interest in non-revocation interval
6227-
format: int32
62286218
example: 1640995199
62296219
to:
6230-
maximum: 18446744073709551615
62316220
minimum: 0
62326221
type: integer
62336222
description: Latest time of interest in non-revocation interval
6234-
format: int32
62356223
example: 1640995199
62366224
IndyProofRequestedProof:
62376225
type: object

0 commit comments

Comments
 (0)