{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ledger.abivia.com/api/json/domainquery.schema.json",
  "title": "Domain Query Request",
  "description": "Ledger Domain Query request",
  "type": "object",
  "properties": {
    "after": {
      "description": "A reference to the last domain in the previous request (if any).",
      "type": "string"
    },
    "codes": {
      "description": "Zero or more code range selectors",
      "type": "array",
      "items": {
        "$ref": "https://ledger.abivia.com/api/json/codeselect.schema.json"
      }
    },
    "limit": {
      "description": "The number of domains to return per page.",
      "type": "integer"
    },
    "names": {
      "description": "Zero or more name selectors.",
      "type": "array",
      "$ref": "https://ledger.abivia.com/api/json/name.schema.json"
    },
    "range": {
      "description": "The first domain code (if a range is requested).",
      "type": "string"
    },
    "rangeEnding": {
      "description": "The last domain code (if a range is requested).",
      "type": "string"
    }
  }
}
