{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vaultvision-tech/json-schema/vaultvision-tech-ranking-response-schema.json",
  "title": "RankingResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vaultvision-tech-openapi.json#/components/schemas/RankingResponse",
  "type": "object",
  "required": [
    "rank_type",
    "generated_ts",
    "items"
  ],
  "properties": {
    "rank_type": {
      "type": "string",
      "enum": [
        "verified",
        "estimated",
        "risk-adjusted"
      ]
    },
    "generated_ts": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RankingItem"
      }
    }
  },
  "$defs": {
    "RankingItem": {
      "type": "object",
      "required": [
        "rank",
        "score",
        "vault_id",
        "protocol",
        "vault_name",
        "tvl_usd",
        "apr",
        "risk_score",
        "risk_band",
        "quality_label",
        "entry_score",
        "vaultvision_url",
        "external_url"
      ],
      "properties": {
        "rank": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1
        },
        "score": {
          "type": [
            "number",
            "null"
          ]
        },
        "included": {
          "type": "boolean"
        },
        "exclude_reason": {
          "type": "string"
        },
        "model_version": {
          "type": "string"
        },
        "methodology_url": {
          "type": "string"
        },
        "evidence_url": {
          "type": "string"
        },
        "metric_evidence": {
          "type": "object",
          "description": "Version, status, receipt, observation window and model inputs; status is reproducible or unavailable, not independent verification."
        },
        "tvl_evidence": {
          "type": "object",
          "description": "Official directory source selector, observed equity and separate history clock/scope."
        },
        "vault_id": {
          "type": "string"
        },
        "protocol": {
          "type": "string"
        },
        "vault_name": {
          "type": "string"
        },
        "tvl_usd": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "apr": {
          "type": [
            "number",
            "null"
          ]
        },
        "cum_return_30d": {
          "type": [
            "number",
            "null"
          ]
        },
        "cum_return_90d": {
          "type": [
            "number",
            "null"
          ]
        },
        "max_drawdown_30d": {
          "type": [
            "number",
            "null"
          ]
        },
        "data_points_30d": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "analytics_date_ts": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        },
        "risk_score": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        },
        "risk_band": {
          "type": [
            "string",
            "null"
          ]
        },
        "quality_label": {
          "type": "string"
        },
        "entry_score": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        },
        "vaultvision_url": {
          "type": "string",
          "format": "uri"
        },
        "external_url": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "description": "Additive public vault metadata follows the vault-card contract. Missing evidence does not imply a zero score."
    }
  }
}