{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bewary/json-schema/bewary-backtest-in-schema.json",
  "title": "BacktestIn",
  "description": "The JSON form of a backtest upload; text/csv and application/x-ndjson carry the same three fields.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bewary-backtest-api-openapi.yml#/components/schemas/BacktestIn",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/BacktestItemIn"
      },
      "maxItems": 10000,
      "minItems": 1,
      "title": "Items",
      "type": "array"
    }
  },
  "required": [
    "items"
  ],
  "type": "object",
  "$defs": {
    "BacktestItemIn": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "enum": [
                "domain",
                "url",
                "phone",
                "email",
                "wallet"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Inferred from the value when absent.",
          "title": "Type"
        },
        "value": {
          "maxLength": 4000,
          "title": "Value",
          "type": "string"
        },
        "reported_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "When you learned it was bad: RFC 3339 or YYYY-MM-DD (UTC).",
          "title": "Reported At"
        }
      },
      "required": [
        "value"
      ],
      "title": "BacktestItemIn",
      "type": "object"
    }
  }
}