-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1067 lines (1067 loc) · 36.7 KB
/
Copy pathopenapi.yaml
File metadata and controls
1067 lines (1067 loc) · 36.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
openapi: 3.1.1
info:
title: Data Veracity Assurance
description: |-
This is the API specification of the
[data veracity assurance building block (DVA)](https://github.com/Prometheus-X-association/data-veracity).
contact:
email: bpeter@edu.bme.hu
version: 0.5.1
servers:
- url: http://localhost:9099
description: Test environment – VLA manager service
- url: http://localhost:9091
description: Test environment – provider side
- url: http://localhost:9092
description: Test environment – consumer side
- url: http://localhost:9090
description: Local development server running on default port
- url: '{server}'
description: Custom parameterizable server
variables:
server:
default: http://localhost:9090
description: Custom server URL
tags:
- name: VLA
description: Endpoints related to veracity level agreements (VLAs)
- name: Templates
description: Endpoints related to the management of VLA templates
- name: AoV
description: Endpoints related to attestations of veracity (AoVs)
- name: PoV
description: Endpoints related to proofs of veracity (PoVs)
- name: Evaluation
description: Endpoints related to evaluating VLAs/requirements
- name: Info
description: Endpoints related to retrieving information about the running instance
- name: Dev
description: Endpoints meant to be used only for development
- name: Future
description: Endpoints that are not available yet but will be implemented in the
future
paths:
/template:
post:
tags: [Templates]
summary: Create new VLA template
description: >
Add a new **VLA template** to the database.
An ID will be automatically generated for the template.
A `201 CREATED` response is given if the template has been successfully created.
Otherwise, you will get a `400 BAD REQUEST` (in case of invalid request data).
operationId: createTemplate
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateCreate'
examples:
PropertyValueBetween:
summary: Property value between min-max with GE
value:
name: Property Value Between Min-Max
description: >-
The value of a JSON property has to fall between a
minimum and a maximum value; evaluated using
GreatExpectations
criterionType: IN_RANGE
targetAspect: ACCURACY
evaluationMethod:
engine: GREAT_EXPECTATIONS
variableSchema:
properties:
property:
type: string
minimum:
type: string
maximum:
type: string
implementationTemplate: |
---
type: ExpectColumnValuesToBeBetween
kwargs:
column: {{ property }}
min_value: '{{ minimum }}'
max_value: '{{ maximum }}'
meta:
schema:
columns:
{{ property }}:
...
PropertyNotBlank:
summary: Property has a non-blank value
value:
name: Property non-blank
description: >-
Checks that the value of a specific JSON property is
not blank (using jq)
criterionType: VALID_INVALID
targetAspect: COMPLETENESS
evaluationMethod:
engine: JQ
variableSchema:
properties:
property:
type: string
implementationTemplate: >-
if {{ property }} != ''
then {
success: true,
details: '{{ property }} is a valid nonempty string'
}
else {
success: false,
details: '{{ property }} is blank'
}
end
JsonShema:
summary: JSON data conforms to schema
value:
name: JSON Schema
description: >-
Data should conform to a JSON schema. The `schema`
is an entire JSON schema string.
criterionType: VALID_INVALID
targetAspect: SYNTAX
evaluationMethod:
engine: SCHEMA
variableSchema:
properties:
schema:
type: string
implementationTemplate: '{{ schema }}'
PropertyExpression:
summary: >-
A property in the JSON data conforms to a simple
requirement
value:
name: JQ Property Expression
description: >-
A specific property in the JSON data must fulfill a
basic requirement of either being equal or not equal
to a given value.
criterionType: VALID_INVALID
targetAspect: SYNTAX
evaluationMethod:
engine: JQ
variableSchema:
properties:
property:
type: string
operator:
type: string
enum: [==, '!=']
operand:
type: boolean
enum: [true, false]
implementationTemplate: >-
{ success: {{ property }} {{{ operand }}} {{ operator }} }
responses:
'201':
$ref: '#/components/responses/Created'
'400':
$ref: '#/components/responses/InvalidData'
get:
tags: [Templates]
summary: Get all VLA templates
description: >
Returns all available **VLA templates** from the database as an array.
operationId: getTemplates
responses:
'200':
description: The list of available VLA templates
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateArray'
delete:
tags: [Dev]
summary: Delete all VLA templatees
description: >
Delete all **VLA templates**.
Should always respond with `204 NO CONTENT`.
operationId: deleteTemplates
responses:
'204':
$ref: '#/components/responses/Deleted'
/template/{id}:
parameters:
- $ref: '#/components/parameters/idParam'
get:
tags: [Templates]
summary: Get VLA template by ID
description: >
Queries a specific **VLA template** by its unique ID.
Responds either with `200 OK` and the contents of the requested template or
with `404 NOT FOUND` if no VLA template with the specified ID exists.
operationId: getTemplate
responses:
'200':
description: Returning requested VLA template
content:
application/json:
schema:
$ref: '#/components/schemas/Template'
'404':
$ref: '#/components/responses/NotFound'
patch:
tags: [Templates]
summary: Update VLA template
description: >
Used to update an existing **VLA template** specified by its ID.
The request body should contain a partial VLA template object – only specified
fields will be updated, if possible.
Responds with `200 OK` if the update operation was successful or `404 NOT
FOUND` if no VLA template with the specified ID exists.
operationId: updateTemplate
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateUpdate'
responses:
'200':
$ref: '#/components/responses/UpdatedTemplate'
'404':
$ref: '#/components/responses/NotFound'
delete:
tags: [Templates]
summary: Delete VLA template
description: >
Delete a **VLA template** specified by its ID.
Responds `204 NO CONTENT` if the template was successfully deleted or `404 FOUND`
if no template with the specified ID exists.
operationId: deleteTemplate
responses:
'204':
$ref: '#/components/responses/Deleted'
'404':
$ref: '#/components/responses/NotFound'
/template/{id}/render:
parameters:
- $ref: '#/components/parameters/idParam'
post:
tags: [Templates]
summary: Render a VLA template
description: >
Render a VLA template to a complete _data quality fragment_ ready to be included
in a VLA.
Responds with `200 OK` and the rendered template on success or with `400 BAD
REQUEST` if the template could not be rendered.
operationId: renderTemplate
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateModel'
responses:
'200':
description: The rendered template
content:
application/json:
schema:
type: object
example:
engine: JQ
implementation: >-
{ success: .url == 'http://example.com' and .someValue == 42 }
'400':
$ref: '#/components/responses/InvalidData'
/vla:
post:
tags: [VLA]
summary: Create a new VLA
description: >
Create a new **Veracity Level Agreement (VLA).**
Responds `201 CREATED` if the VLA was successfully created or `400 BAD REQUEST`
if creation failed.
operationId: createVLA
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VLACreate'
responses:
'201':
$ref: '#/components/responses/Created'
'400':
$ref: '#/components/responses/InvalidData'
get:
tags: [VLA]
summary: Get all VLAs
description: >
Returns all available **Veracity Level Agreements** from the database as an
array.
operationId: getVLAs
responses:
'200':
description: The list of known VLAs
content:
application/json:
schema:
$ref: '#/components/schemas/VLAArray'
delete:
tags: [Dev]
summary: Delete all VLAs
description: >
Delete all **Veracity Level Agreeements.**
Should always respond with `204 NO CONTENT`.
operationId: deleteVLAs
responses:
'204':
$ref: '#/components/responses/Deleted'
/vla/from-templates:
post:
tags: [VLA]
summary: Create a new VLA using template rendering
description: >
Create a new **Veracity Level Agreement (VLA).**
Responds `201 CREATED` if the VLA was successfully created or `400 BAD REQUEST`
if creation failed.
operationId: createVLAFromTemplates
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VLACreateFromTemplates'
responses:
'201':
$ref: '#/components/responses/Created'
'400':
$ref: '#/components/responses/InvalidData'
/vla/{id}:
parameters:
- $ref: '#/components/parameters/idParam'
get:
tags: [VLA]
summary: Get VLA by ID
description: >
Queries a specific **Veracity Level Agreement** by its unique ID.
Responds either with `200 OK` and the contents of the requested VLA or with
`404 NOT FOUND` if no VLA with the specified ID exists.
operationId: getVLA
responses:
'200':
description: Returning requested VLA
content:
application/json:
schema:
$ref: https://raw.githubusercontent.com/bitol-io/open-data-contract-standard/refs/heads/main/schema/odcs-json-schema-latest.json
'404':
$ref: '#/components/responses/NotFound'
/attestation:
post:
tags: [AoV]
summary: Submit an attestation request
description: >
Create a new **AoV request** for a given data exchange.
Requests are processed asynchronously.
If your request has been accepted for processing, the response will be `202
ACCEPTED`.
Otherwise, in the case of an invalid request, you will get a `400 BAD REQUEST`
error.
operationId: requestAov
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AttestationRequest'
examples:
JsonSchemaAndPropertyExpressions:
summary: >-
Check that data conforms to a JSON schema and that
some property checks pass
value:
exchangeID: xchg-0001
contract:
id: contract-0001
dataProvider: /catalog/participants/provider-test-id
dataConsumer: /catalog/participants/consumer-test-did
serviceOffering: /catalog/serviceofferings/serviceoffering-test-did
purpose: []
negotiators:
- did: /catalog/participants/provider-test-id
- did: /catalog/participants/consumer-test-did
status: PENDING
policy:
- uid: /policy/policy-0-uid
permission:
- type: permission
uid: /target/3f8d1b0e-8e2e-4b69-9b1f-089fe2f3e9d7
action: use
vla:
id: ddf4a56a-228b-461c-9448-d0e16135e315
kind: DataContract
schema:
name: xapi_statement
logicalType: object
properties:
- name: actor
logicalType: object
required: true
- name: verb
logicalType: object
required: true
- name: object
logicalType: object
required: true
- name: result
logicalType: object
required: true
- name: timestamp
logicalType: string
required: true
quality:
- engine: SCHEMA
implementation:
$schema: https://json-schema.org/draft-07/schema
title: Minimal xAPI Statement
description: >-
This is not the full xAPI JSON schema,
just a minimal subset for testing.
type: object
properties:
actor:
type: object
properties:
name:
type: string
mbox:
type: string
format: email
required: [name]
verb:
type: object
properties:
id:
type: string
format: uri
required: [id]
object:
type: object
properties:
id:
type: string
format: uri
definition:
type: object
properties:
name:
type: object
properties:
en-US:
type: string
required: [en-US]
description:
type: object
properties:
en-US:
type: string
required: [en-US]
type:
type: string
format: uri
required: [name, type]
required: [definition, id]
result:
type: object
properties:
success:
type: boolean
required: [success]
timestamp:
type: string
format: date-time
required: [actor, object, result, timestamp, verb]
- engine: JQ
implementation: '{ success: .result.success }'
- engine: JQ
implementation: >-
{ success: .actor.name | contains('Dupont') }
attesterID: attester-0000
data:
actor:
name: Jean Dupont
mbox: mailto:jeandupont@example.com
verb:
id: http://adlnet.gov/expapi/verbs/interacted
object:
id: https://navy.mil/netc/xapi/activities/simulations/b9e16535-4fc9-4c66-ac87-3ad7ce515f5c/events/0221144
definition:
name:
en-US: Event in Simulator
description:
en-US: You're wearing all your PPE
type: http://adlnet.gov/expapi/activities/interaction
result:
success: true
timestamp: '2025-03-16T03:25:00Z'
responses:
'202':
$ref: '#/components/responses/Accepted'
'400':
$ref: '#/components/responses/InvalidData'
/attestation/verify:
post:
tags: [AoV]
summary: Submit an AoV verification request
description: >
Create a new **AoV verification request** for a given AoV.
Requests are processed asynchronously.
If your request has been accepted for processing, the response will be `202
ACCEPTED`.
Otherwise, in the case of an invalid request, you will get a `400 BAD REQUEST`
error.
operationId: requestAovVerification
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VerificationRequest'
responses:
'202':
$ref: '#/components/responses/Accepted'
'400':
$ref: '#/components/responses/InvalidData'
/proof:
post:
tags: [Future]
summary: Submit proof generation request
description: >
Create a new **PoV request** for a given data exchange.
Requests are processed asynchronously.
If your request has been accepted for processing, the response will be `202
ACCEPTED`.
Otherwise, in the case of an invalid request, you will get a `400 BAD REQUEST`
error.
operationId: requestPov
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ProofRequest'
responses:
'202':
$ref: '#/components/responses/Accepted'
'400':
$ref: '#/components/responses/InvalidData'
/proof/verify:
post:
tags: [Future]
summary: Submit PoV verification request
description: >
Create a new **PoV verification request** for a given PoV.
Requests are processed asynchronously.
If your request has been accepted for processing, the response will be `202
ACCEPTED`.
Otherwise, in the case of an invalid request, you will get a `400 BAD REQUEST`
error.
operationId: requestPovVerification
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VerificationRequest'
responses:
'202':
$ref: '#/components/responses/Accepted'
'400':
$ref: '#/components/responses/InvalidData'
/evaluate:
post:
tags: [Evaluation]
summary: Evaluate a requirement against some data
description: >
Takes some requirement (that could be part of a VLA) and a piece of data in
the request body.
The response is the result of evaluating the requirement on that data.
This endpoint is useful for testing requirements in the process of building
VLAs.
operationId: evaluate
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluationRequest'
responses:
'200':
$ref: '#/components/responses/Evaluated'
'400':
$ref: '#/components/responses/InvalidData'
/evaluate/from-template:
post:
tags: [Evaluation]
summary: Render a template and evaluate the result against some data
description: >
Takes a template ID and some data in the request body.
The template with the given ID is rendered internally and the resulting
requirement is evaluated on the data passed.
This endpoint is useful for testing requirements in the process of building
VLAs.
operationId: evaluteFromTemplate
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluationFromTemplateRequest'
responses:
'200':
$ref: '#/components/responses/Evaluated'
'400':
$ref: '#/components/responses/InvalidData'
'404':
$ref: '#/components/responses/NotFound'
/info/requests:
get:
tags: [Info]
summary: Get all DVA attestation/proof requests
operationId: getRequests
responses:
'200':
description: Returning all known requests
content:
application/json:
schema:
type: object
/info/presentations:
get:
tags: [Info]
summary: Get all DVA presentations/verifications
operationId: getPresentations
responses:
'200':
description: Returning all known presentations
content:
application/json:
schema:
type: object
/info/credentials:
get:
tags: [Info]
summary: Get all stored verifiable credentials
operationId: getCredentials
responses:
'200':
description: Returning all stored VCs
content:
application/json:
schema:
type: object
components:
schemas:
Id:
type: string
example: 8e51e3a7-c614-4f5f-9ecf-8e2b032d72e4
IdObject:
type: object
properties:
id:
$ref: '#/components/schemas/Id'
required: [id]
example:
id: 8d70bc5f-f690-4b66-a7b0-c05c8c815dad
TemplateArray:
type: array
items:
$ref: '#/components/schemas/Template'
Template:
type: object
required:
- id
- name
- criterionType
- targetAspect
- evaluatoinMethod
additionalProperties: false
properties:
id:
type: string
readOnly: true
name:
type: string
description:
type: string
criterionType:
$ref: '#/components/schemas/CriterionType'
targetAspect:
$ref: '#/components/schemas/QualityAspect'
evaluationMethod:
type: object
required: [engine, variableSchema, implementationTemplate]
additionalProperties: false
properties:
engine:
$ref: '#/components/schemas/QualityEngine'
variableSchema:
type: object
implementationTemplate:
type: string
example:
name: JSON Schema
description: >-
Data should conform to a JSON schema with the given URL
criterionType: VALID_INVALID
targetAspect: SYNTAX
evaluationMethod:
engine: SCHEMA
variableSchema:
properties:
schemaURL:
type: string
implementationTemplate: '{{ schemaURL }}'
TemplateCreate:
allOf:
- $ref: '#/components/schemas/Template'
TemplateUpdate:
allOf:
- $ref: '#/components/schemas/Template'
TemplateModel:
type: object
example:
myUrl: http://example.com
numericalVariable: 42
arbitraryValues: are okay
VLACreate:
allOf:
- $ref: https://raw.githubusercontent.com/bitol-io/open-data-contract-standard/refs/heads/main/schema/odcs-json-schema-latest.json
example:
description: Data is recent and valid
schema:
properties:
timestamp:
type: string
result:
type: integer
quality:
- engine: JQ
implementation: '{ success: .timestamp >= "20250101T0000Z" }'
- engine: JQ
implementation: '{ success: .result >= 1 and .result <= 5 }'
VLACreateFromTemplates:
allOf:
- $ref: https://raw.githubusercontent.com/bitol-io/open-data-contract-standard/refs/heads/main/schema/odcs-json-schema-latest.json
example:
description: Data is recent and valid
schema:
properties:
timestamp:
type: string
result:
type: integer
qualityTemplates:
- id: 718a3c91-886b-49c4-9f70-5198f98d21c0
model:
date: 20250101T000000Z
- id: 28972cb3-a008-465b-a0d2-cd20ef45497a
model:
minimum: 1
maximum: 5
VLAArray:
type: array
items:
$ref: https://raw.githubusercontent.com/bitol-io/open-data-contract-standard/refs/heads/main/schema/odcs-json-schema-latest.json
CriterionType:
type: string
enum: [VALID_INVALID, IN_RANGE, GREATER_OR_LESS_THAN]
QualityAspect:
type: string
enum: [SYNTAX, TIMELINESS, ACCURACY, COMPLETENESS, CONSISTENCY]
QualityEngine:
type: string
enum: [SCHEMA, GREAT_EXPECTATIONS, JQ]
VeracityRequest:
type: object
required: [exchangeID, contract, data]
properties:
exchangeID:
type: string
example: 75c411c0-4016-4f83-a3e8-66b137080d86
contract:
type: object
required: [id, vla]
additionalProperties: true
properties:
id:
type: string
vla:
$ref: https://raw.githubusercontent.com/bitol-io/open-data-contract-standard/refs/heads/main/schema/odcs-json-schema-latest.json
data:
$ref: '#/components/schemas/AnyValue'
example:
exchangeID: xchg-0001
contract:
id: contract-0001
dataProvider: /catalog/participants/provider-test-id
dataConsumer: /catalog/participants/consumer-test-did
serviceOffering: /catalog/serviceofferings/serviceoffering-test-did
purpose: []
negotiators:
- did: /catalog/participants/provider-test-id
- did: /catalog/participants/consumer-test-did
status: PENDING
policy:
- uid: /policy/policy-0-uid
permission:
- type: permission
uid: /target/3f8d1b0e-8e2e-4b69-9b1f-089fe2f3e9d7
action: use
vla:
id: 2e99b60d-8cf7-4668-a234-96ebfd6a2b63
kind: DataContract
schema:
name: xapi_statement
logicalType: object
properties:
- name: actor
logicalType: object
required: true
- name: verb
logicalType: object
required: true
- name: object
logicalType: object
required: true
- name: result
logicalType: object
required: true
- name: timestamp
logicalType: string
required: true
quality:
- type: custom
engine: greatExpectations
implementation: >-
type: ExpectColumnValuesToBeBetween
kwargs:
column: timestamp
min_value: '2025-01-01T00:00:00Z'
max_value: '2026-01-01T00:00:00Z'
data:
actor:
name: Jean Dupont
mbox: mailto:jeandupont@example.com
verb:
id: http://adlnet.gov/expapi/verbs/interacted
object:
id: https://navy.mil/netc/xapi/activities/simulations/b9e16535-4fc9-4c66-ac87-3ad7ce515f5c/events/0221144
definition:
name:
en-US: Event in Simulator
description:
en-US: You're wearing all your PPE
type: http://adlnet.gov/expapi/activities/interaction
result:
success: true
timestamp: '2025-03-16T03:25:00Z'
attesterID: attester-0000
AttestationRequest:
allOf:
- $ref: '#/components/schemas/VeracityRequest'
required: [attesterID]
properties:
attesterID:
type: string
ProofRequest:
allOf:
- $ref: '#/components/schemas/VeracityRequest'
required: [proverID]
properties:
proverID:
type: string
VerificationRequest:
type: object
required:
- exchangeID
- contractID
- attesterAgentURL
- attesterAgentLabel
additionalProperties: false
properties:
exchangeID:
type: string
contractID:
type: string
attesterAgentURL:
type: string
format: url
attesterAgentLabel:
type: string
example:
exchangeID: xchg-0001
contractID: contract-0001
attesterAgentURL: http://aca-py-provider:8030
attesterAgentLabel: provider
EvaluationRequest:
type: object
required: [requirement, data]
additionalProperties: false
properties:
requirement:
$ref: https://raw.githubusercontent.com/bitol-io/open-data-contract-standard/refs/heads/main/schema/odcs-json-schema-latest.json#/$defs/DataQualityCustom
data:
type: object
example:
requirement:
engine: JQ
implementation: >-
if .actor == 'Expected Actor'
then { success: true, details: 'Actor name is correct' }
else { success: false, details: 'Unexpected actor name' }
end
data:
statement_id: 123
actor: Unexpected Uriel
action: read
object: course_materials/lecturenotes/1
EvaluationFromTemplateRequest:
type: object
required: [templateID, templateModel, data]
additionalProperties: false
properties:
templateID:
type: string
templateModel:
type: object
data:
type: object
example:
templateID: 74d696f2-b217-4d2f-a0c1-5ff65cd2258d
templateModel:
target_field: .actor
required_value: Expected Actor
data:
statement_id: 123
actor: Unexpected Uriel
action: read
object: course_materials/lecturenotes/1
EvaluationResult:
type: object
required: [timestamp, success]
additionalProperties: false
properties:
engine:
type: QualityEngine
timestamp:
type: string
format: datetime
success:
type: bool
details:
type: string
error:
type: string
example:
engine: JQ
timestamp: '2026-01-31T17:48:10.904264Z'
success: true
details: Actor name is correct
Error:
type: object
required: [message]
properties:
message:
type: string
AnyValue: {}
parameters:
idParam:
name: id
description: A resource’s ID
in: path
required: true
schema:
$ref: '#/components/schemas/Id'
responses:
Created:
description: >-
The resource has been created successfully.
You may be able to query the created resource later by the ID
returned or refer to the resource using its ID in
other requests.
content:
application/json:
schema:
$ref: '#/components/schemas/IdObject'
Deleted:
description: >-
The resource has been deleted successfully.
The associated ID (if any) is no longer valid.