{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/enterprise-wikimedia-com/json-schema/enterprise-wikimedia-com-filter-schema.json",
  "title": "filter",
  "description": "Filter condition applied to a POST request body, narrowing the response to records matching the value",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/enterprise-wikimedia-com-codes-api-openapi.yml#/components/schemas/filter",
  "type": "object",
  "properties": {
    "field": {
      "type": "string",
      "description": "Field to filter on, in dot notation, e.g. `is_part_of.identifier`"
    },
    "value": {
      "description": "Value the field must equal. Use the field's own type - a number for numeric fields such as `namespace.identifier`, a string for text fields.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    }
  }
}