{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ohmyfin-ai/json-schema/ohmyfin-ai-list-filter-schema.json",
  "title": "ListFilter",
  "description": "Present only when the request carried `include_lists` or `exclude_lists`: how each\nentry resolved to the lists we screen against. An include entry that matches a\nlist name as written (a case-sensitive substring) is used unchanged (`literal`).\nOne that matches no list as written is retried ignoring case, spaces and\npunctuation (`folded`) and searched as the lists named in `lists`. One that still\nmatches nothing is ignored (`unmatched`). Exclude entries are never folded.\n`status: partial` means part of what you asked for was NOT screened: fix the\nentries in `unmatched` with the `list_name` values from `/sanctions/lists`.\n`unverified` means the list names could not be read, so the entries were applied\nas written.\n",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ohmyfin-ai-openapi.json#/components/schemas/ListFilter",
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "include",
        "exclude"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "resolved",
        "partial",
        "unverified"
      ]
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "entry": {
            "type": "string",
            "description": "The entry as you sent it."
          },
          "resolution": {
            "type": "string",
            "enum": [
              "literal",
              "folded",
              "unmatched",
              "unverified"
            ]
          },
          "lists": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The list names this entry selected."
          }
        }
      }
    },
    "unmatched": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Entries that matched no list."
    },
    "lists_screened": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of lists searched."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}