{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "datasets.schema.json", "title": "Datasets Configuration", "description": "Esquema para editar plc_datasets.json (mĂșltiples datasets y variables)", "type": "object", "additionalProperties": false, "properties": { "datasets": { "type": "object", "title": "Datasets", "additionalProperties": { "type": "object", "properties": { "name": { "type": "string" }, "prefix": { "type": "string" }, "variables": { "type": "object", "additionalProperties": { "type": "object", "properties": { "area": { "type": "string", "enum": [ "db", "mw", "m", "pew", "pe", "paw", "pa", "e", "a", "mb" ] }, "db": { "type": [ "integer", "null" ], "minimum": 1 }, "offset": { "type": "integer", "minimum": 0 }, "bit": { "type": [ "integer", "null" ], "minimum": 0, "maximum": 7 }, "type": { "type": "string", "enum": [ "real", "int", "bool", "dint", "word", "byte", "uint", "udint", "sint", "usint" ] }, "streaming": { "type": "boolean", "default": false } }, "required": [ "area", "offset", "type" ] } }, "streaming_variables": { "type": "array", "items": { "type": "string" }, "default": [] }, "sampling_interval": { "type": [ "number", "null" ], "minimum": 0.01 }, "enabled": { "type": "boolean", "default": false }, "created": { "type": [ "string", "null" ] } }, "required": [ "name", "prefix", "variables", "streaming_variables" ] } }, "active_datasets": { "type": "array", "items": { "type": "string" }, "default": [] }, "current_dataset_id": { "type": [ "string", "null" ] }, "version": { "type": "string" }, "last_update": { "type": [ "string", "null" ] } }, "required": [ "datasets" ] }