{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentpaywire.com/schemas/x402-v2-wire.schema.json",
  "title": "x402 v2 wire facts",
  "description": "Header names, Base64 JSON fields, CAIP-2 identifiers, and the exact and upto schemes. A null value means the cited page did not state it.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "generated_at",
    "disclaimer",
    "count",
    "entries"
  ],
  "properties": {
    "schema_version": {
      "const": "1"
    },
    "generated_at": {
      "type": "string"
    },
    "disclaimer": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "text",
        "url"
      ],
      "properties": {
        "text": {
          "const": "Not investment advice."
        },
        "url": {
          "const": "https://agentpaywire.com/disclaimer.json"
        }
      }
    },
    "$schema": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "markdown_url": {
      "type": "string"
    },
    "csv_url": {
      "type": "string"
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "value",
          "note",
          "source",
          "verified_at"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "verified_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      }
    }
  }
}
