tegwick
5264a6083c
feat: enhance validate command with semantic validation
Integrates SemanticValidator into CLI validate command:
New Options:
- --semantic/--no-semantic (default: True) - Enable/disable semantic validation
- --check-links - Enable link validation (requires semantic validation)
- --strict - Treat warnings as errors (fail on WARNING-level issues)
Features:
- Automatically detects x-markitect extensions in schema
- Runs semantic validation alongside structural validation
- Combines results with clear separation in output
- Maintains full backward compatibility (--no-semantic for classic mode)
- Supports .md schema files with embedded JSON
- Graceful degradation: semantic validation errors don't crash command
Example Usage:
# Full validation (structural + semantic)
markitect validate doc.md --schema manpage-schema-v1.0.md
# Strict mode (warnings = errors)
markitect validate doc.md --schema schema.md --strict
# Classic mode (structural only)
markitect validate doc.md --schema schema.json --no-semantic
Output Format:
- Shows structural validation results first
- Then semantic validation results (sections, content)
- Clear summary with error/warning counts
- Exit codes: 0=pass, 1=fail (respects --strict flag)
Integration: cli.py:1493-1668
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 03:27:39 +01:00
..
2025-11-12 00:19:03 +01:00
2025-10-13 23:09:18 +02:00
2025-10-25 02:37:45 +02:00
2025-10-25 02:37:45 +02:00
2025-09-30 17:28:39 +02:00
2025-10-02 09:14:24 +02:00
2025-10-13 20:26:08 +02:00
2025-10-02 09:14:24 +02:00
2025-10-13 23:09:18 +02:00
2025-12-15 23:42:54 +01:00
2025-10-14 18:15:26 +02:00
2025-10-04 01:53:31 +02:00
2025-10-25 02:37:45 +02:00
2026-01-05 14:13:48 +01:00
2025-12-16 10:27:05 +01:00
2025-10-02 15:33:32 +02:00
2025-12-17 12:02:42 +01:00
2025-11-10 11:43:25 +01:00
2026-01-06 03:24:32 +01:00
2025-09-16 03:04:18 +02:00
2025-11-09 10:41:28 +01:00
2025-10-14 13:46:34 +02:00
2025-09-30 13:09:37 +02:00
2025-09-24 01:14:27 +02:00
2025-09-27 09:31:47 +02:00
2025-10-03 10:45:43 +02:00
2025-09-27 08:28:10 +02:00
2025-12-17 12:02:42 +01:00
2025-10-14 13:46:34 +02:00
2026-01-06 03:27:39 +01:00
2025-10-06 03:03:38 +02:00
2025-10-06 03:03:38 +02:00
2025-10-28 03:50:21 +01:00
2025-10-03 10:35:16 +02:00
2025-10-06 03:03:38 +02:00
2025-10-06 03:03:38 +02:00
2025-10-06 03:03:38 +02:00
2025-09-30 17:28:39 +02:00
2026-01-04 21:02:51 +01:00
2025-09-29 21:21:21 +02:00
2025-10-06 03:03:38 +02:00
2026-01-04 21:29:08 +01:00
2025-10-06 03:03:38 +02:00
2026-01-05 00:02:15 +01:00
2026-01-04 23:51:29 +01:00
2026-01-04 21:30:55 +01:00
2025-10-06 03:03:38 +02:00
2026-01-06 03:24:32 +01:00
2025-10-06 03:03:38 +02:00
2025-10-06 03:03:38 +02:00
2025-09-29 21:21:21 +02:00
2025-10-14 17:53:47 +02:00