
Also: 1. Look over comments only, do not use votes (because some drivers are executed by jenkins) 2. For master branch assign release based on date Change-Id: I75bb29c8d8cf798a882e64953c784e01fd57a95e
139 lines
4.2 KiB
JSON
139 lines
4.2 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"type": "object",
|
|
"required": ["projects", "drivers"],
|
|
"properties": {
|
|
"projects": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^[a-z\\d\\./-]+$"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["id", "name"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"releases": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"$ref": "#/definitions/release_id"
|
|
},
|
|
"wiki": {
|
|
"type": "string"
|
|
},
|
|
"active": {
|
|
"type": "boolean"
|
|
},
|
|
"start": {
|
|
"$ref": "#/definitions/date_format"
|
|
}
|
|
},
|
|
"required": ["id", "wiki", "start"]
|
|
}
|
|
},
|
|
"drivers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"project_id": {
|
|
"type": "string"
|
|
},
|
|
"repo": {
|
|
"type": "string"
|
|
},
|
|
"vendor": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"maintainers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/user"
|
|
}
|
|
},
|
|
"wiki": {
|
|
"type": "string"
|
|
},
|
|
"releases": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/release_id"
|
|
}
|
|
},
|
|
"ci": {
|
|
"$ref": "#/definitions/ci"
|
|
}
|
|
},
|
|
"required": ["project_id", "vendor", "name"],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"user": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"pattern": "^[^,]+$"
|
|
},
|
|
"email": {
|
|
"type": "string",
|
|
"pattern": "^[a-z\\d_\\.-]+@([a-z\\d\\.-]+\\.)+[a-z]+$"
|
|
},
|
|
"irc": {
|
|
"type": "string",
|
|
"pattern": "^[\\S]+$"
|
|
},
|
|
"launchpad_id": {
|
|
"type": "string",
|
|
"pattern": "^[\\S]+$"
|
|
}
|
|
},
|
|
"required": ["name"],
|
|
"additionalProperties": false
|
|
},
|
|
"ci": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^[\\S]+$"
|
|
},
|
|
"success_pattern": {
|
|
"type": "string"
|
|
},
|
|
"failure_pattern": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["id", "success_pattern", "failure_pattern"],
|
|
"additionalProperties": false
|
|
},
|
|
"release_id": {
|
|
"type": "string",
|
|
"pattern": "^[A-Z][a-z]+$"
|
|
},
|
|
"date_format": {
|
|
"type": ["string"],
|
|
"pattern": "^20\\d{2}-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-[0-3]\\d$"
|
|
}
|
|
}
|
|
}
|