{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/scalar/main/json-schema/scalar-workspace-version-schema.json",
  "title": "workspace-version",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scalar-workspace-api-openapi.yml#/components/schemas/workspace-version",
  "type": "object",
  "properties": {
    "version": {
      "$ref": "#/$defs/version"
    },
    "managedDocs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/registry-meta"
      }
    },
    "createdAt": {
      "default": "unixTimestamp()",
      "$ref": "#/$defs/timestamp"
    },
    "updatedAt": {
      "default": "unixTimestamp()",
      "$ref": "#/$defs/timestamp"
    }
  },
  "required": [
    "version",
    "managedDocs",
    "createdAt",
    "updatedAt"
  ],
  "additionalProperties": false,
  "$defs": {
    "registry-meta": {
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      },
      "required": [
        "namespace",
        "slug"
      ],
      "additionalProperties": false
    },
    "timestamp": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "version": {
      "type": "string",
      "minLength": 1
    }
  }
}