{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revyl/json-schema/revyl-module-version-list-response-schema.json",
  "title": "ModuleVersionListResponse",
  "description": "Response for listing module versions",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revyl-modules-api-openapi.yml#/components/schemas/ModuleVersionListResponse",
  "properties": {
    "total": {
      "title": "Total",
      "type": "integer"
    },
    "versions": {
      "items": {
        "$ref": "#/$defs/ModuleVersionInfo"
      },
      "title": "Versions",
      "type": "array"
    }
  },
  "required": [
    "versions",
    "total"
  ],
  "type": "object",
  "$defs": {
    "ModuleVersionInfo": {
      "description": "A single version history entry",
      "properties": {
        "blocks": {
          "items": {},
          "title": "Blocks",
          "type": "array"
        },
        "created_at": {
          "title": "Created At",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "id": {
          "title": "Id",
          "type": "string"
        },
        "modified_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Modified By"
        },
        "modified_by_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Modified By Email"
        },
        "module_id": {
          "title": "Module Id",
          "type": "string"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "version": {
          "title": "Version",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "module_id",
        "version",
        "blocks",
        "created_at"
      ],
      "title": "ModuleVersionInfo",
      "type": "object"
    }
  }
}