{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jitprompt-com/json-schema/jitprompt-com-version-schema.json",
  "title": "Version",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jitprompt-com-openapi.json#/components/schemas/Version",
  "properties": {
    "version": {
      "type": "integer",
      "title": "Version"
    },
    "source_name": {
      "type": "string",
      "title": "Source Name"
    },
    "size_bytes": {
      "type": "integer",
      "title": "Size Bytes"
    },
    "kind": {
      "type": "string",
      "enum": [
        "upload",
        "replace",
        "restore",
        "baseline"
      ],
      "title": "Kind"
    },
    "restored_from": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Restored From"
    },
    "created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "current": {
      "type": "boolean",
      "title": "Current"
    }
  },
  "type": "object",
  "required": [
    "version",
    "source_name",
    "size_bytes",
    "kind",
    "restored_from",
    "created_by",
    "created_at",
    "current"
  ]
}