{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-rwa-metric-value-schema.json",
  "title": "RwaMetricValue",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-proof-of-reserve-api-openapi.yml#/components/schemas/RwaMetricValue",
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "value": {
      "type": "number"
    },
    "scope": {
      "type": "string",
      "enum": [
        "fund",
        "global_issued",
        "chain_deployment"
      ]
    },
    "basis": {
      "type": "string",
      "enum": [
        "total_asset_value",
        "global_issued_value",
        "circulating_value",
        "sec_7_day",
        "sec_30_day",
        "seven_day_yield",
        "thirty_day_yield",
        "issuer_monthly_set_apy",
        "issuer_reported_apy",
        "nav_per_share",
        "weighted_average_maturity"
      ]
    },
    "unit": {
      "type": "string",
      "enum": [
        "USD",
        "percent",
        "days",
        "USD_per_share"
      ]
    },
    "source_url": {
      "type": "string",
      "format": "uri"
    },
    "source_field": {
      "type": "string"
    },
    "retrieved_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z$",
      "description": "ISO 8601, UTC, Z suffix, up to microsecond precision."
    },
    "raw_payload_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "observed_at": {
      "type": "string"
    },
    "evidence_basis": {
      "type": "string",
      "enum": [
        "issuer_report"
      ]
    },
    "approval_kind": {
      "type": "string",
      "enum": [
        "automated_identity",
        "human_reviewed_identity",
        "mixed_identity"
      ]
    }
  },
  "required": [
    "value",
    "scope",
    "basis",
    "unit",
    "source_url",
    "source_field",
    "retrieved_at",
    "raw_payload_sha256"
  ]
}