{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-oracle-freshness-response-schema.json",
  "title": "OracleFreshnessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-oracle-vector-api-openapi.yml#/components/schemas/OracleFreshnessResponse",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "number"
        },
        "cacheAgeSeconds": {
          "type": "number"
        },
        "nextRefreshIn": {
          "type": "number"
        }
      },
      "required": [
        "timestamp",
        "cacheAgeSeconds",
        "nextRefreshIn"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "asset": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "architecture": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "provider"
            ]
          },
          "metrics": {
            "type": "object",
            "properties": {
              "baselinePrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "onChainPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "offChainPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "timeDelaySeconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "deviationPercentage": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "baselinePrice",
              "onChainPrice",
              "offChainPrice",
              "timeDelaySeconds",
              "deviationPercentage"
            ]
          },
          "config": {
            "type": "object",
            "properties": {
              "heartbeatHours": {
                "type": "number"
              },
              "deviationThresholdPercent": {
                "type": "number"
              }
            },
            "required": [
              "heartbeatHours",
              "deviationThresholdPercent"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "asset",
          "network",
          "architecture",
          "metrics",
          "config"
        ]
      }
    }
  },
  "required": [
    "meta",
    "data"
  ]
}