{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://usedeed.app/contracts/deed.design_system_keyboard_contract.v1.schema.json",
  "title": "DEED component keyboard contract",
  "type": "object",
  "required": ["$schema", "version", "component", "group", "interaction", "sourceKeys", "platformControls", "focusModel", "accessibleName", "escapeOwned", "positiveTabindexAllowed", "sourceHash"],
  "properties": {
    "$schema": { "const": "https://usedeed.app/contracts/deed.design_system_keyboard_contract.v1.schema.json" },
    "version": { "const": 1 },
    "component": { "type": "string", "minLength": 1 },
    "group": { "type": "string", "minLength": 1 },
    "interaction": { "type": "string", "minLength": 1 },
    "sourceKeys": { "type": "array", "items": { "type": "string" } },
    "platformControls": { "type": "array", "items": { "type": "string" } },
    "focusModel": { "type": "string", "minLength": 1 },
    "accessibleName": { "type": "string", "minLength": 1 },
    "escapeOwned": { "type": "boolean" },
    "positiveTabindexAllowed": { "type": "boolean" },
    "sourceHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
  }
}
