forked from decentralized-identity/web5-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vectors.schema.json
47 lines (46 loc) · 1.75 KB
/
vectors.schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Schema for representing test vectors for various features.",
"type": "object",
"required": ["description", "vectors"],
"properties": {
"description": {
"type": "string",
"description": "A general description of the test vectors collection."
},
"vectors": {
"type": "array",
"description": "An array of test vectors for testing different features.",
"items": {
"type": "object",
"description": "A single test vector, which includes a description and input, and may optionally include an expected output and an errors indicator.",
"required": ["description", "input"],
"properties": {
"description": {
"type": "string",
"description": "A description of what this test vector is validating."
},
"input": {
"description": "The input for the test vector, which can be of any type."
},
"output": {
"description": "The expected output for the test vector, which can be of any type."
},
"errors": {
"type": "boolean",
"default": false,
"description": "Indicates whether the test vector is expected to produce an error. Defaults to false if not present."
},
"errorMessage": {
"type": "object",
"description": "A dictionary object that maps the sdk error message to the expected error message.",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
}
}
}
}