| { |
| "description": "Schema for a build package file", |
| "type": "object", |
| "properties": { |
| "imports": { |
| "description": "A list of paths to other build package files to include", |
| "type": "array", |
| "items": { |
| "type": "string" |
| } |
| }, |
| "labels": { |
| "description": "A list of GN labels to build; useful for e.g. host tools", |
| "type": "array", |
| "items": { |
| "$ref": "#/definitions/gnLabel" |
| } |
| }, |
| "packages": { |
| "description": "A map of Fuchsia packages; each entry's key must match exactly the name of the package in the entry's value", |
| "type": "object", |
| "additionalProperties": { |
| "$ref": "#/definitions/gnLabel" |
| } |
| } |
| }, |
| "minProperties": 1, |
| "additionalProperties": false, |
| "definitions": { |
| "gnLabel": { |
| "description": "An absolute GN label", |
| "type": "string", |
| "pattern": "^/(/[^/]+)+(:[^/]+)?(\\(/(/[^/]+)+(:[^/]+)?\\))?$" |
| } |
| } |
| } |