{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.apps.smartmate.io/tables/filter/rules/objectRule.schema.json",
  "$$target": "https://schemas.apps.smartmate.io/tables/filter/rules/objectRule.schema.json",
  "title": "objectRule",
  "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/parentReference.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": ["isNull", "isNotNull"]
    }
  },
  "required": ["field", "operator"],
  "additionalProperties": false
}
