1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Kitchen-sink: this file contains MULTIPLE errors of different kinds.
#
# ⚠️ Current limitation: the compiler bails on the FIRST error and exits.
# So a single run will only surface one of the issues below — fix it,
# re-run, the next one shows up, repeat. "Collect all errors" is a planned
# improvement (CLAUDE.md HOLO-DIAGNOSTICS).
#
# Errors in this file:
# 1. line 20 — duplicate enum type `status`
# 2. line 28 — unknown column type `not_a_type`
# 3. line 35 — duplicate relation `tasks`
# 4. line 42 — view sources an unknown table (`ghost`)
# 5. line 50 — view selects an unknown alias (`x`)
#
# Run: cargo run -- samples/error_multiple.yml
#
# Tip: comment out the higher-line errors as you fix them to see the
# lower ones surface, until the file compiles cleanly.
types:
- name: status
enum:
- name: status # 1. duplicate enum
enum:
tables:
- name: tasks
columns:
task_id:
priority: # 2. unknown type
primary_key:
- name: tasks # 3. duplicate relation
columns:
id:
primary_key:
views:
- name: ghost_view
from: # 4. unknown source table
select:
-
- name: bad_alias_view
from:
select:
- # 5. unknown alias