{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/predictasiax-com/json-schema/predictasiax-com-oracle-attestation-schema.json",
  "title": "OracleAttestation",
  "description": "An optimistic-oracle attestation and its dispute lifecycle.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/predictasiax-com-openapi.yml#/components/schemas/OracleAttestation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "market_id": {
      "type": "string"
    },
    "proposer_user_id": {
      "type": "string"
    },
    "provider_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "proposed_outcome": {
      "type": "string"
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bond_pax": {
      "$ref": "#/$defs/Money"
    },
    "state": {
      "type": "string",
      "enum": [
        "proposed",
        "disputed",
        "resolved"
      ]
    },
    "liveness_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "disputer_user_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "disputer_outcome": {
      "type": [
        "string",
        "null"
      ]
    },
    "disputer_evidence_urls": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "disputer_bond_pax": {
      "type": [
        "string",
        "null"
      ]
    },
    "disputed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "resolved_outcome": {
      "type": [
        "string",
        "null"
      ]
    },
    "proposer_won": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "reward_pax": {
      "$ref": "#/$defs/Money"
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "finalized_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "$defs": {
    "Money": {
      "type": "string",
      "description": "Decimal string with up to 6 fractional digits"
    }
  }
}