Bug 1593194 - Mirror CI schema validation support for application field

This commit is contained in:
ionutgoldan 2019-11-11 10:48:59 +02:00 коммит произвёл GitHub
Родитель ecb34da75b
Коммит aef15ddf90
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -1,5 +1,30 @@
{ {
"definitions": { "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": { "framework_schema": {
"properties": { "properties": {
"name": { "name": {
@ -161,6 +186,9 @@
"description": "Structure for submitting performance data as part of a job", "description": "Structure for submitting performance data as part of a job",
"id": "https://treeherder.mozilla.org/schemas/v1/performance-artifact.json#", "id": "https://treeherder.mozilla.org/schemas/v1/performance-artifact.json#",
"properties": { "properties": {
"application": {
"$ref": "#/definitions/application_schema"
},
"framework": { "framework": {
"$ref": "#/definitions/framework_schema" "$ref": "#/definitions/framework_schema"
}, },