markitect-main/markitect/schemas/arc42-schema-v1.0.md
tegwick 4faadb7ecd
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 2s
Register arc42-v1 schema for single-file architecture documents
Twelve required chapters, checklist recommended. First-wave estate
documents validate against it.
2026-08-19 00:17:13 +02:00

2.9 KiB
Raw Blame History

description domain schema-id status version
Schema for arc42 architecture documentation. Twelve numbered chapters are required; the quality checklist is recommended. arc42 https://markitect.dev/schemas/arc42/v1.0 stable 1.0.0

arc42 Architecture Documentation Schema v1.0.0

Overview

Validates a single-file arc42 architecture document. Chapters 112 must be present as level-2 headings. Chapter 13 (quality checklist) is recommended. A first-wave stub may mark unused chapters N/A in the body; the heading must still exist.

Usage

markitect validate docs/architecture/<system>_v0.1.md \
  --schema markitect/schemas/arc42-schema-v1.0.md

Catalog id: arc42-v1.

Schema Definition

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://markitect.dev/schemas/arc42/v1.0",
  "title": "arc42 Architecture Documentation Schema",
  "description": "Single-file arc42 document with twelve required chapters",
  "type": "object",
  "properties": {
    "headings": {
      "type": "object",
      "properties": {
        "level_1": {
          "type": "array",
          "description": "Document title",
          "minItems": 1,
          "maxItems": 1
        },
        "level_2": {
          "type": "array",
          "description": "arc42 chapters and optional about/checklist headings",
          "minItems": 12
        }
      },
      "required": ["level_1", "level_2"]
    },
    "paragraphs": {
      "type": "array",
      "minItems": 6
    }
  },
  "required": ["headings", "paragraphs"],
  "x-markitect-sections": {
    "1. Introduction and Goals": {
      "classification": "required",
      "heading_level": 2
    },
    "2. Architecture Constraints": {
      "classification": "required",
      "heading_level": 2
    },
    "3. System Scope and Context": {
      "classification": "required",
      "heading_level": 2
    },
    "4. Solution Strategy": {
      "classification": "required",
      "heading_level": 2
    },
    "5. Building Block View": {
      "classification": "required",
      "heading_level": 2
    },
    "6. Runtime View": {
      "classification": "required",
      "heading_level": 2
    },
    "7. Deployment View": {
      "classification": "required",
      "heading_level": 2
    },
    "8. Cross-Cutting Concepts": {
      "classification": "required",
      "heading_level": 2
    },
    "9. Architecture Decisions": {
      "classification": "required",
      "heading_level": 2
    },
    "10. Quality Requirements": {
      "classification": "required",
      "heading_level": 2
    },
    "11. Risks and Technical Debt": {
      "classification": "required",
      "heading_level": 2
    },
    "12. Glossary": {
      "classification": "required",
      "heading_level": 2
    },
    "13. Best-Practice Requirements & Quality Checklist": {
      "classification": "recommended",
      "heading_level": 2
    }
  }
}