{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "OwnershipSearchFilter",
  "type": "object",
  "description": "Filter for ownerships search query",
  "properties": {
    "blockchains": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Blockchain"
      }
    },
    "owners": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UnionAddress"
      }
    },
    "collections": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CollectionId"
      }
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ItemId"
      }
    },
    "beforeDate": {
      "type": "string",
      "format": "date-time"
    },
    "afterDate": {
      "type": "string",
      "format": "date-time"
    },
    "sellPriceFrom": {
      "type": "number",
      "format": "double"
    },
    "sellPriceTo": {
      "type": "number",
      "format": "double"
    },
    "sellCurrency": {
      "type": "string"
    },
    "sellPlatforms": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Platform"
      }
    }
  }
}