{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/waodao/main/json-schema/waodao-pools-response-schema.json",
  "title": "PoolsResponse",
  "x-generated": "2026-10-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/waodao-liquidity-pools-api-openapi.yml#/components/schemas/PoolsResponse",
  "type": "object",
  "required": [
    "project",
    "schema",
    "purpose",
    "description",
    "docs_url",
    "links",
    "summary",
    "market_entry",
    "wao_token",
    "data_policy",
    "items"
  ],
  "properties": {
    "project": {
      "type": "string"
    },
    "schema": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "docs_url": {
      "type": "string",
      "format": "uri"
    },
    "links": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "format": "uri"
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "total_pools": {
          "type": "integer",
          "minimum": 0
        },
        "chains": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "dexes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "market_entry": {
      "type": "object",
      "additionalProperties": true
    },
    "wao_token": {
      "type": "object",
      "properties": {
        "symbol": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "deployments": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    },
    "data_policy": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PoolItem"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "PoolItem": {
      "type": "object",
      "required": [
        "pair",
        "type",
        "category",
        "chain",
        "dex",
        "protocol",
        "pool_identifier",
        "pool_url",
        "description",
        "status"
      ],
      "properties": {
        "pair": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "enum": [
            "core_liquidity_route",
            "friendly_pool"
          ]
        },
        "chain": {
          "type": "string"
        },
        "dex": {
          "type": "string"
        },
        "protocol": {
          "type": [
            "string",
            "null"
          ]
        },
        "pool_identifier": {
          "type": "string"
        },
        "pool_contract": {
          "type": "string"
        },
        "pool_url": {
          "type": "string",
          "format": "uri"
        },
        "description": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}