{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.apps.smartmate.io/apps/menu/menu.schema.json",
  "$$target": "https://schemas.apps.smartmate.io/apps/menu/menu.schema.json",
  "type": "array",
  "title": "menuItems",
  "description": "Defines the items to be displayed in the app menu",
  "items": {
    "allOf": [{
      "$ref": "#/definitions/menuItem"
    }]
  },
  "definitions": {
    "menuItem": {
      "type": "object",
      "required": ["type", "target"],
      "properties": {
        "type": {
          "description": "The item type. Currently the unique type supported is ``table``.",
          "type": "string",
          "enum": ["table"]
        },
        "target": {
          "description": "the target id. If type is ``table``, target is the table key.",
          "examples": ["myTable"],
          "type": "string"
        }
      }
    }
  }
}
