| { |
| "$schema": "http://json-schema.org/draft-04/schema#", |
| "id": "http://fuchsia.com/schemas/sdk/fidl_library.json", |
| "description": "A FIDL library", |
| "type": "object", |
| "allOf": [ |
| { |
| "$ref": "common.json#/definitions/sdk_element" |
| }, |
| { |
| "properties": { |
| "type": { |
| "allOf": [ |
| { |
| "$ref": "common.json#/definitions/type" |
| }, |
| { |
| "enum": [ |
| "fidl_library" |
| ] |
| } |
| ] |
| }, |
| "name": { |
| "description": "Name of the library", |
| "$ref": "common.json#/definitions/fidl_library_name" |
| }, |
| "root": { |
| "description": "The root of the element in the SDK", |
| "type": "string" |
| }, |
| "sources": { |
| "description": "List of library sources", |
| "type": "array", |
| "minItems": 1, |
| "items": { |
| "$ref": "common.json#/definitions/file" |
| } |
| }, |
| "deps": { |
| "description": "List of libraries this library depends on", |
| "type": "array", |
| "items": { |
| "$ref": "common.json#/definitions/fidl_library_name" |
| } |
| } |
| }, |
| "required": [ |
| "deps", |
| "root", |
| "sources", |
| |
| "name", |
| "type" |
| ], |
| "additionalProperties": false |
| } |
| ] |
| } |