Skip to content

Commit 788dd9b

Browse files
committed
update openapi formatting
Signed-off-by: Timo Glastra <timo@animo.id>
1 parent ca54c9c commit 788dd9b

File tree

2 files changed

+2736
-2791
lines changed

2 files changed

+2736
-2791
lines changed

generator/data/openapi.patch

Lines changed: 22 additions & 13 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 4582107..eea7e2d 100644
2+
index 4582107..0186d58 100644
33
--- a/generator/data/openapi.yml
44
+++ b/generator/data/openapi.yml
55
@@ -705,7 +705,7 @@ paths:
@@ -38,7 +38,7 @@ index 4582107..eea7e2d 100644
3838
x-codegen-request-body-name: body
3939
operationId: publish_schema
4040
/schemas/created:
41-
@@ -4373,22 +4381,8 @@ components:
41+
@@ -4373,22 +4373,8 @@ components:
4242
description: Connection protocol used
4343
example: connections/1.0
4444
enum:
@@ -58,62 +58,71 @@ index 4582107..eea7e2d 100644
5858
- - h
5959
- - a
6060
- - g
61-
+ - connections/1.0
62-
+ - didexchange/1.0
61+
+ - connections/1.0
62+
+ - didexchange/1.0
6363
created_at:
6464
pattern: ^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$
6565
type: string
66-
@@ -5021,6 +5015,8 @@ components:
66+
@@ -5021,6 +5007,8 @@ components:
6767
example: default
6868
CredentialDefinitionSendResult:
6969
type: object
7070
+ required:
71-
+ - credential_definition_id
71+
+ - credential_definition_id
7272
properties:
7373
credential_definition_id:
7474
pattern: ^([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}):3:CL:(([1-9][0-9]*)|([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+)):(.+)?$
75-
@@ -7328,6 +7324,8 @@ components:
75+
@@ -7328,6 +7316,8 @@ components:
7676
example: 0
7777
RevRegResult:
7878
type: object
7979
+ required:
80-
+ - result
80+
+ - result
8181
properties:
8282
result:
8383
$ref: '#/components/schemas/IssuerRevRegRecord'
84-
@@ -7479,6 +7477,7 @@ components:
84+
@@ -7479,6 +7469,7 @@ components:
8585
SchemaSendResult:
8686
required:
8787
- schema_id
8888
+ - schema
8989
type: object
9090
properties:
9191
schema:
92-
@@ -7765,6 +7764,7 @@ components:
92+
@@ -7620,7 +7611,7 @@ components:
93+
maximum: 18446744073709551615
94+
minimum: 0
95+
type: integer
96+
- format: int32
97+
+ format: uint64
98+
example: 1629715147
99+
TAAInfo:
100+
type: object
101+
@@ -7765,6 +7756,7 @@ components:
93102
example: 2021-08-23 10:39:07+00:00
94103
TxnOrCredentialDefinitionSendResult:
95104
type: object
96105
+ additionalProperties: false
97106
properties:
98107
sent:
99108
$ref: '#/components/schemas/CredentialDefinitionSendResult'
100-
@@ -7775,6 +7775,7 @@ components:
109+
@@ -7775,6 +7767,7 @@ components:
101110
- $ref: '#/components/schemas/TransactionRecord'
102111
TxnOrPublishRevocationsResult:
103112
type: object
104113
+ additionalProperties: false
105114
properties:
106115
sent:
107116
$ref: '#/components/schemas/PublishRevocations'
108-
@@ -7785,6 +7786,7 @@ components:
117+
@@ -7785,6 +7778,7 @@ components:
109118
- $ref: '#/components/schemas/TransactionRecord'
110119
TxnOrRevRegResult:
111120
type: object
112121
+ additionalProperties: false
113122
properties:
114123
sent:
115124
$ref: '#/components/schemas/RevRegResult'
116-
@@ -7795,6 +7797,7 @@ components:
125+
@@ -7795,6 +7789,7 @@ components:
117126
- $ref: '#/components/schemas/TransactionRecord'
118127
TxnOrSchemaSendResult:
119128
type: object

0 commit comments

Comments
 (0)