Kearm commited on
Commit
15dcc1e
·
verified ·
1 Parent(s): efdcdac

Upload benchmark.schema.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. benchmark.schema.json +46 -0
benchmark.schema.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://resmp.dev/schemas/benchmark-instrument-rev01.json",
4
+ "title": "RESMP Benchmark Instrument Rev 01",
5
+ "type": "object",
6
+ "required": ["title", "series", "groups"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "title": {"type": "string", "minLength": 1},
10
+ "subtitle": {"type": "string"},
11
+ "higherIsBetter": {"type": "boolean", "default": true},
12
+ "series": {
13
+ "type": "array", "minItems": 1,
14
+ "items": {
15
+ "type": "object", "required": ["id", "label", "color"], "additionalProperties": false,
16
+ "properties": {
17
+ "id": {"type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"},
18
+ "label": {"type": "string", "minLength": 1},
19
+ "color": {"type": "string", "pattern": "^#[0-9A-Fa-f]{6}$"}
20
+ }
21
+ }
22
+ },
23
+ "groups": {
24
+ "type": "array", "minItems": 1,
25
+ "items": {
26
+ "type": "object", "required": ["name", "panels"], "additionalProperties": false,
27
+ "properties": {
28
+ "name": {"type": "string", "minLength": 1},
29
+ "panels": {
30
+ "type": "array", "minItems": 1,
31
+ "items": {
32
+ "type": "object", "required": ["name", "values"], "additionalProperties": false,
33
+ "properties": {
34
+ "name": {"type": "string", "minLength": 1},
35
+ "values": {
36
+ "type": "object",
37
+ "additionalProperties": {"type": ["number", "null"]}
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }