{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/machineeconomyobservatory-com/json-schema/machineeconomyobservatory-com-preflight-input-schema.json",
  "title": "PreflightInput",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/machineeconomyobservatory-com-openapi.json#/components/schemas/PreflightInput",
  "type": "object",
  "properties": {
    "resource": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Public HTTPS resource URL, no query, credentials or fragment. Exact resource matching only; never fetched."
    },
    "payTo": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Proposed recipient; EVM networks require a 0x-prefixed 40-hex-character address. Never logged or interpreted as wallet ownership."
    },
    "network": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[a-z0-9-]+:[a-zA-Z0-9_-]+$",
      "description": "CAIP-style network; v0.1 supports eip155:8453 only."
    },
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9:._/-]+$",
      "description": "v0.1 supports source-reported USDC currency label only; no token contract validation."
    },
    "amount": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,23})(\\.[0-9]{1,6})?$",
      "description": "Nonnegative decimal asset units, maximum six decimal places. Not atomic units. No exponent notation."
    }
  },
  "required": [
    "resource",
    "payTo",
    "network",
    "asset",
    "amount"
  ],
  "additionalProperties": false
}