{
  "additionalProperties": false,
  "properties": {
    "all": {
      "type": "boolean"
    },
    "base": {
      "description": "Name of the base (database) the table is in. Optional: when set, the table must belong to this base.",
      "minLength": 1,
      "type": "string"
    },
    "limit": {
      "maximum": 10000,
      "minimum": 1,
      "type": "integer"
    },
    "prefix": {
      "maxLength": 32,
      "type": "string"
    },
    "returns": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "maxItems": 100,
      "type": "array"
    },
    "sheet": {
      "description": "Name of the table to look the row up in.",
      "minLength": 1,
      "type": "string",
      "x-lumen-widget": "sheet-ref"
    },
    "where": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "column": {
            "minLength": 1,
            "type": "string"
          },
          "op": {
            "default": "eq",
            "enum": [
              "eq",
              "contains",
              "gt",
              "gte",
              "lt",
              "lte"
            ],
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "column",
          "value"
        ],
        "type": "object"
      },
      "maxItems": 8,
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "sheet",
    "where"
  ],
  "type": "object"
}
