Skip to content

Validate complete authored snippet page - #1326

Draft
danielporterda wants to merge 1 commit into
snippet-validate-snippet-pagefrom
snippet-validate-authored-page
Draft

Validate complete authored snippet page#1326
danielporterda wants to merge 1 commit into
snippet-validate-snippet-pagefrom
snippet-validate-authored-page

Conversation

@danielporterda

@danielporterda danielporterda commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What changed

Adds the whole-page validation entry point that runs the separate condition-page and snippet-page pipelines, sorts diagnostics by source location/code, and returns a complete validated page only when no diagnostics exist.

It does not discover files, load the registry from disk, expose a CLI, resolve source content, or compile MDX.

Why

Whole-page composition is the final in-memory contract layer before filesystem and command-line concerns.

Validation

  • python -m pytest tests/test_authored_snippet_page_validation.py tests/test_snippet_page_validation.py tests/test_condition_page_validation.py (11 passed)
  • python -m ruff check scripts/snippets/model.py scripts/snippets/page_validation.py tests/test_authored_snippet_page_validation.py
  • python -m mypy scripts/snippets/model.py scripts/snippets/page_validation.py
  • git diff --check

Signed-off-by: danielporterda <daniel.porter@digitalasset.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant