@@ -62,15 +62,18 @@ class Meta:
62
62
unknown = EXCLUDE
63
63
64
64
public_keys = fields .Dict (
65
- data_key = "publicKeys" , example = INDY_RAW_PUBLIC_KEY_EXAMPLE
65
+ data_key = "publicKeys" , metadata = { "example" : INDY_RAW_PUBLIC_KEY_EXAMPLE }
66
66
)
67
- max_cred_num = fields .Int (data_key = "maxCredNum" , example = 666 )
67
+ max_cred_num = fields .Int (data_key = "maxCredNum" , metadata = { "example" : 777 } )
68
68
tails_location = fields .Str (
69
69
data_key = "tailsLocation" ,
70
- example = "https://tails-server.com/hash/7Qen9RDyemMuV7xGQvp7NjwMSpyHieJyBakycxN7dX7P" ,
70
+ metadata = {
71
+ "example" : "https://tails-server.com/hash/7Qen9RDyemMuV7xGQvp7NjwMSpyHieJyBakycxN7dX7P"
72
+ },
71
73
)
72
74
tails_hash = fields .Str (
73
- data_key = "tailsHash" , example = "7Qen9RDyemMuV7xGQvp7NjwMSpyHieJyBakycxN7dX7P"
75
+ data_key = "tailsHash" ,
76
+ metadata = {"example" : "7Qen9RDyemMuV7xGQvp7NjwMSpyHieJyBakycxN7dX7P" },
74
77
)
75
78
76
79
@@ -130,18 +133,25 @@ class Meta:
130
133
unknown = EXCLUDE
131
134
132
135
issuer_id = fields .Str (
133
- description = "Issuer Identifier of the credential definition or schema" ,
136
+ metadata = {
137
+ "description" : "Issuer Identifier of the credential definition or schema" ,
138
+ "example" : INDY_OR_KEY_DID_EXAMPLE ,
139
+ },
134
140
data_key = "issuerId" ,
135
- example = INDY_OR_KEY_DID_EXAMPLE ,
136
141
)
137
142
type = fields .Str (data_key = "revocDefType" )
138
143
cred_def_id = fields .Str (
139
- description = "Credential definition identifier" ,
144
+ metadata = {
145
+ "description" : "Credential definition identifier" ,
146
+ "example" : INDY_CRED_DEF_ID_EXAMPLE ,
147
+ },
140
148
data_key = "credDefId" ,
141
- example = INDY_CRED_DEF_ID_EXAMPLE ,
142
149
)
143
150
tag = fields .Str (
144
- description = "tag for the revocation registry definition" , example = "default"
151
+ metadata = {
152
+ "description" : "tag for the revocation registry definition" ,
153
+ "example" : "default" ,
154
+ }
145
155
)
146
156
value = fields .Nested (RevRegDefValueSchema ())
147
157
@@ -204,11 +214,13 @@ class Meta:
204
214
)
205
215
)
206
216
revocation_registry_definition_id = fields .Str (
207
- description = "revocation registry definition id" ,
208
- example = INDY_REV_REG_ID_EXAMPLE ,
217
+ metadata = {
218
+ "description" : "revocation registry definition id" ,
219
+ "example" : INDY_REV_REG_ID_EXAMPLE ,
220
+ }
209
221
)
210
222
revocation_registry_definition = fields .Nested (
211
- RevRegDefSchema (), description = " revocation registry definition"
223
+ RevRegDefSchema (), metadata = { "description" : " revocation registry definition"}
212
224
)
213
225
214
226
@@ -381,30 +393,40 @@ class Meta:
381
393
unknown = EXCLUDE
382
394
383
395
issuer_id = fields .Str (
384
- description = "Issuer Identifier of the credential definition or schema" ,
396
+ metadata = {
397
+ "description" : "Issuer Identifier of the credential definition or schema" ,
398
+ "example" : INDY_OR_KEY_DID_EXAMPLE ,
399
+ },
385
400
data_key = "issuerId" ,
386
- example = INDY_OR_KEY_DID_EXAMPLE ,
387
401
)
388
402
rev_reg_def_id = fields .Str (
389
- description = "The ID of the revocation registry definition" ,
403
+ metadata = {
404
+ "description" : "The ID of the revocation registry definition" ,
405
+ "example" : INDY_REV_REG_ID_EXAMPLE ,
406
+ },
390
407
data_key = "revRegDefId" ,
391
- example = INDY_REV_REG_ID_EXAMPLE ,
392
408
)
393
409
revocation_list = fields .List (
394
410
fields .Int (),
395
- description = "Bit list representing revoked credentials" ,
411
+ metadata = {
412
+ "description" : "Bit list representing revoked credentials" ,
413
+ "example" : [0 , 1 , 1 , 0 ],
414
+ },
396
415
data_key = "revocationList" ,
397
- example = [0 , 1 , 1 , 0 ],
398
416
)
399
417
current_accumulator = fields .Str (
400
- description = "The current accumalator value" ,
401
- example = "21 118...1FB" ,
418
+ metadata = {
419
+ "description" : "The current accumalator value" ,
420
+ "example" : "21 118...1FB" ,
421
+ },
402
422
data_key = "currentAccumulator" ,
403
423
)
404
424
timestamp = fields .Int (
405
- description = "Timestamp at which revocation list is applicable" ,
425
+ metadata = {
426
+ "description" : "Timestamp at which revocation list is applicable" ,
427
+ "example" : INDY_ISO8601_DATETIME_EXAMPLE ,
428
+ },
406
429
required = False ,
407
- example = INDY_ISO8601_DATETIME_EXAMPLE ,
408
430
)
409
431
410
432
@@ -458,7 +480,9 @@ class Meta:
458
480
]
459
481
)
460
482
)
461
- revocation_list = fields .Nested (RevListSchema (), description = "revocation list" )
483
+ revocation_list = fields .Nested (
484
+ RevListSchema (), metadata = {"description" : "revocation list" }
485
+ )
462
486
463
487
464
488
class RevListResult (BaseModel ):
0 commit comments