{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bewary/json-schema/bewary-backtest-created-schema.json",
  "title": "BacktestCreated",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bewary-backtest-api-openapi.yml#/components/schemas/BacktestCreated",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "bt_ + a ULID."
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "done",
        "failed"
      ],
      "title": "Status"
    },
    "items": {
      "type": "integer",
      "title": "Items"
    },
    "valid": {
      "type": "integer",
      "title": "Valid"
    },
    "invalid": {
      "type": "integer",
      "title": "Invalid",
      "description": "Items that are not a value of their type: reported, never charged."
    },
    "free_items": {
      "type": "integer",
      "title": "Free Items",
      "description": "Items covered by this month's free allowance."
    },
    "credits": {
      "type": "integer",
      "title": "Credits",
      "description": "Credits charged: one per valid item past the free allowance."
    },
    "report": {
      "type": "string",
      "title": "Report",
      "description": "Path of the report."
    }
  },
  "type": "object",
  "required": [
    "id",
    "status",
    "items",
    "valid",
    "invalid",
    "free_items",
    "credits",
    "report"
  ]
}