Bug 1593192 - Add schema validation for name & version of application under test r=perftest-reviewers,sparky,octavian_negru

Differential Revision: https://phabricator.services.mozilla.com/D51410

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ionut Goldan 2019-11-05 09:47:34 +00:00
parent 4260baaf8f
commit 352a1a928c

View File

@ -1,5 +1,30 @@
{
"definitions": {
"application_schema": {
"properties": {
"name": {
"title": "Application under performance test",
"enum": [
"firefox",
"chrome",
"chromium",
"fennec",
"geckoview",
"refbrow",
"fenix"
],
"maxLength": 10,
"type": "string"
},
"version": {
"title": "Application's version",
"maxLength": 40,
"type": "string"
}
},
"required": ["name"],
"type": "object"
},
"framework_schema": {
"properties": {
"name": {
@ -157,6 +182,9 @@
"description": "Structure for submitting performance data as part of a job",
"id": "https://treeherder.mozilla.org/schemas/v1/performance-artifact.json#",
"properties": {
"application":{
"$ref": "#/definitions/application_schema"
},
"framework": {
"$ref": "#/definitions/framework_schema"
},