/ challenges-old / string
Sign in
challenges-old / string
string / schema / solution.schema.json
68 lines · 2.9 KBCodeBlameHistory
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://vault1.magland.org/challenges/string/schema/solution.schema.json",
4 "title": "Challenge solution submission",
5 "description": "One submission file: a set of solutions to one challenge from one submitter, with an optional accuracy partial order among them.",
6 "type": "object",
7 "required": ["schema_version", "submission_id", "challenge_id", "submitter", "solutions"],
8 "additionalProperties": false,
9 "properties": {
10 "schema_version": { "const": 1 },
11 "submission_id": {
12 "type": "string",
13 "pattern": "^[a-z0-9][a-z0-9-]*$",
14 "description": "Identifier of this submission. Must equal the file name without .json."
15 },
16 "challenge_id": {
17 "type": "string",
18 "pattern": "^[a-z0-9][a-z0-9-]*$",
19 "description": "The challenge this submission solves. Must equal the name of the directory containing the file."
20 },
21 "submitter": {
22 "type": "object",
23 "required": ["name"],
24 "additionalProperties": false,
25 "properties": {
26 "name": { "type": "string" },
27 "email": { "type": "string" },
28 "url": { "type": "string", "format": "uri" }
29 }
30 },
31 "date": { "type": "string", "format": "date" },
32 "description": { "type": "string" },
33 "code_url": { "type": "string", "format": "uri", "description": "Source code for the method, applying to every solution unless overridden." },
34 "viz_url": { "type": "string", "format": "uri", "description": "A web application visualizing the solutions." },
35 "solutions": {
36 "type": "array",
37 "minItems": 1,
38 "items": {
39 "type": "object",
40 "required": ["solution_id", "output"],
41 "additionalProperties": false,
42 "properties": {
43 "solution_id": {
44 "type": "string",
45 "pattern": "^[a-z0-9][a-z0-9-]*$",
46 "description": "Unique within the submission."
47 },
48 "output": {
49 "type": "string",
50 "description": "Path to the wav file relative to the directory containing this JSON file, or an http(s) URL."
51 },
52 "method": { "type": "string", "description": "Short name of the numerical method." },
53 "parameters": { "type": "object", "description": "Discretization parameters, free form." },
54 "timing_seconds": { "type": "number", "minimum": 0, "description": "Self-reported wall-clock time to produce the output, excluding file I/O." },
55 "hardware": { "type": "string" },
56 "code_url": { "type": "string", "format": "uri" },
57 "viz_url": { "type": "string", "format": "uri" },
58 "more_accurate_than": {
59 "type": "array",
60 "items": { "type": "string" },
61 "description": "solution_ids in this same file that the submitter asserts are less accurate than this one."
62 },
63 "notes": { "type": "string" }
64 }
65 }
66 }
67 }
↑↓ move↵openescclose