{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/widget-table.json#",
  "title": "Table widget",
  "description": "Schema defines table widget",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["table"]
    },
    "name": {
      "$ref": "field-base.json#/definitions/name"
    },
    "noDataText": {
      "type": ["string", "null"]
    },
    "rowsPerPageText": {
      "type": ["string", "null"]
    },
    "noResultsText": {
      "type": ["string", "null"]
    },
    "rowsPerPageItems": {
      "type": ["array", "string", "null"]
    },
    "rowsPerPage": {
      "type": "number"
    },
    "sortBy": {
      "type": ["null", "string"]
    },
    "startPage": {
      "type": "number"
    },
    "dataSource": {
      "type": ["null", "object"],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      }
    }
  },
  "required": ["type"]
}
