{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/kmdouglass/kpal/master/resources/schemas/peripheral.schema.json", "title": "Peripheral", "description": "A single hardware peripheral that is controlled and monitored by the daemon", "type": "object", "properties": { "id": { "description": "The unique identifier for a peripheral", "type": "integer" }, "name": { "description": "The name of the peripheral", "type": "string" }, "library_id": { "description": "The ID of the peripheral's shared library file", "type": "integer" }, "links": { "description": "Hyperlinks to resources related to the peripheral", "type": "array", "items": { "$ref": "#/link.schema.json" }, "default": [] } }, "required": [ "id", "name", "library_id", "attributes", "links" ] }