> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate, repair, and inspect a diagram

> Use structural checks, layout observations, bounded YAML repair, and visual review before publishing.

Use validation to find source problems, evaluation to understand layout, and a rendered image to judge communication. Each answers a different question.

## 1. Validate the source

```bash theme={null}
isotopo validate input.yaml
```

Read each issue's severity, path and suggested correction. Exit 0 means no issues, 2 means warnings, and 3 means errors. Warnings can still indicate something a reader will find confusing.

## 2. Evaluate the layout

```bash theme={null}
isotopo evaluate input.yaml
```

Review crossings, overlaps, tunnelling and composition findings. A lower cost or higher composition score does not prove that every label is visible or the architecture is correct.

## 3. Repair supported defects

Keep your source under version control or make a copy, then:

```bash theme={null}
isotopo repair input.yaml --compose --write
```

Source repair supports YAML. Review the changes and unresolved observations. Explicit waypoints and some geometric cases limit automatic repair. Continue with the revised source.

## 4. Inspect the actual output

```bash theme={null}
isotopo render --report input.yaml ./out
isotopo snapshot input.yaml ./out
```

The snapshot needs a supported rasterizer. Open `topology.png` and inspect label fit, connections, arrow direction, and grouping at the intended display size. If rasterization is unavailable, open the SVG in a browser.

For a closer view of a part named `api`:

```bash theme={null}
isotopo preview input.yaml ./api.svg api
```

## When you are ready to publish

Confirm that the diagram tells the intended story, the current source is saved, and remaining warnings are understood. A static SVG does not carry Studio's editing controls. See [publishing](https://iso-topology.mintlify.site/getting-started/05-publishing.md) and the [diagnostic contracts](https://iso-topology.mintlify.site/reference/diagnostics.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.