diff options
Diffstat (limited to 'python/mozperftest/mozperftest/schemas/transformer_schema.json')
-rw-r--r-- | python/mozperftest/mozperftest/schemas/transformer_schema.json | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/python/mozperftest/mozperftest/schemas/transformer_schema.json b/python/mozperftest/mozperftest/schemas/transformer_schema.json new file mode 100644 index 0000000000..ab156f5386 --- /dev/null +++ b/python/mozperftest/mozperftest/schemas/transformer_schema.json @@ -0,0 +1,55 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "file": { + "type": "string" + }, + "value": {}, + "xaxis": { + "type": "number" + } + }, + "required": [ + "file", + "value", + "xaxis" + ] + } + }, + "dict": { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/data" + }, + "name": { + "type": "string" + }, + "subtest": { + "type": "string" + } + }, + "required": [ + "data", + "name", + "subtest" + ] + } + }, + "oneOf": [ + { + "$ref": "#/definitions/dict" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/dict" + } + } + ] +} |