{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.apps.smartmate.io/tables/filter/rules/numericRule.schema.json",
  "$$target": "https://schemas.apps.smartmate.io/tables/filter/rules/numericRule.schema.json",
  "title": "numericRule",
  "type": "object",
  "properties": {
    "field": {
      "description": "The field to filter",
      "oneOf": [
        {
          "$ref": "https://schemas.apps.smartmate.io/patterns/nestedIdentification.schema.json"
        },
        {
          "$ref": "https://schemas.apps.smartmate.io/patterns/parentFieldReference.schema.json"
        }
      ]
    },
    "operator": {
      "description": "The operator. Must be one of the enum items.",
      "type": "string",
      "enum": ["=", "!=", "<", ">", "<=", ">=", "equals", "notEquals", "lowerThan", "greaterThan", "lowerThanOrEqualTo", "greaterThanOrEqualTo"]
    },
    "value": {
      "description": "The value to filter",
      "type": "number"
    }
  },
  "required": ["field", "operator"],
  "additionalProperties": false
}
