{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/staycharted-com/json-schema/staycharted-com-model-detail-schema.json",
  "title": "ModelDetail",
  "description": "A Model, with every training run.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/staycharted-com-openapi.yaml#/components/schemas/ModelDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "modality": {
      "type": "string",
      "enum": [
        "text",
        "image"
      ]
    },
    "status": {
      "type": "string"
    },
    "published": {
      "type": "boolean"
    },
    "liveVersion": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "latestVersion": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "accuracy": {
      "type": [
        "number",
        "null"
      ]
    },
    "versions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "engine": {
            "type": [
              "string",
              "null"
            ]
          },
          "accuracy": {
            "type": [
              "number",
              "null"
            ]
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "live": {
            "type": "boolean"
          }
        }
      }
    }
  }
}