{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antfly/json-schema/antfly-row-filter-entry-schema.json",
  "title": "RowFilterEntry",
  "description": "A row filter policy for a user on a specific table.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/antfly-rowfilter-api-openapi.yml#/components/schemas/RowFilterEntry",
  "type": "object",
  "properties": {
    "table": {
      "type": "string",
      "description": "Table name (or '*' for all tables)."
    },
    "table_target": {
      "$ref": "#/$defs/CatalogTableScope"
    },
    "filter": {
      "type": "object",
      "additionalProperties": {},
      "description": "Antfly query JSON that documents must match to be visible."
    }
  },
  "required": [
    "table",
    "filter"
  ],
  "$defs": {
    "CatalogTableScope": {
      "type": "object",
      "description": "A table or all tables in an explicit namespace. A missing table selects the namespace; a table named '*' remains literal.",
      "properties": {
        "database": {
          "type": "string",
          "default": "default"
        },
        "namespace": {
          "type": "string",
          "default": "public"
        },
        "table": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}