forked from Thomas-Upfield/CIPs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
74 lines (74 loc) · 2.77 KB
/
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
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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0012",
"type": "object",
"title": "CIP12",
"description": "Transaction metadata schema for CIP12",
"patternProperties": {
"^199{0,1}$": {
"type": "array",
"items": [ {
"type": "object",
"patternProperties": {
"^[A-Za-z]{1,8}(-[A-Za-z0-9]{1,8})*$": {
"type": "object",
"required": [
"title",
"content"
],
"properties": {
"title": {
"$id": "#/properties/title",
"type": "string",
"title": "Title",
"description": "Title of the communication.",
"maxLength": 64,
"examples": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do"
]
},
"content": {
"$id": "#/properties/content",
"type": "array",
"title": "Content",
"description": "Content of the communication in chunks",
"items": [
{
"type": "string",
"maxLength": 64
}
],
"examples": [
[
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do ",
"eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut e",
"nim ad minim veniam, quis nostrud exercitation ullamco laboris."
]
]
},
"valid": {
"$id": "#/properties/valid",
"type": "integer",
"title": "Validity",
"description": "Slot number when the communication becomes valid",
"examples": [
10669033
]
},
"expire": {
"$id": "#/properties/expire",
"type": "integer",
"title": "Expiration",
"description": "Slot number when the communication expires",
"examples": [
10669033
]
}
},
"additionalProperties": false
}
}
} ]
}
}
}