forked from ensdao/spp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproviders.schema.json
More file actions
84 lines (84 loc) · 2.03 KB
/
Copy pathproviders.schema.json
File metadata and controls
84 lines (84 loc) · 2.03 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SPP Accountability Providers",
"description": "Service provider metadata and quarterly reports for the ENS Service Provider Program.",
"type": "object",
"required": ["providers"],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"providers": {
"type": "array",
"items": {
"$ref": "#/$defs/Provider"
}
}
},
"$defs": {
"Quarter": {
"type": "string",
"pattern": "^\\d{4}/Q[1-4]$"
},
"Url": {
"type": "string",
"pattern": "^https?://"
},
"ProviderProgram": {
"type": "object",
"required": ["budget", "streamDuration"],
"additionalProperties": false,
"properties": {
"proposalUrl": {
"$ref": "#/$defs/Url",
"description": "Provider's application or nomination for this program."
},
"budget": {
"type": "integer",
"minimum": 0,
"description": "Annual budget in USD."
},
"streamDuration": {
"type": "integer",
"enum": [1, 2],
"description": "Stream duration in years."
}
}
},
"Provider": {
"type": "object",
"required": ["name", "slug", "programs", "reports"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"slug": {
"type": "string",
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
},
"website": {
"$ref": "#/$defs/Url"
},
"programs": {
"type": "object",
"minProperties": 1,
"additionalProperties": {
"$ref": "#/$defs/ProviderProgram"
}
},
"reports": {
"type": "object",
"propertyNames": {
"$ref": "#/$defs/Quarter"
},
"additionalProperties": {
"$ref": "#/$defs/Url"
}
}
}
}
}
}