Skip to content

Format snippet page diagnostics - #1314

Draft
danielporterda wants to merge 1 commit into
snippet-validate-candidate-conditionfrom
snippet-page-line-diagnostics
Draft

Format snippet page diagnostics#1314
danielporterda wants to merge 1 commit into
snippet-validate-candidate-conditionfrom
snippet-page-line-diagnostics

Conversation

@danielporterda

@danielporterda danielporterda commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What changed

Adds the diagnostic value used to report snippet authoring failures with repository path, line, column, stable code, message, and optional remediation.

This PR only defines and tests rendering. It does not map validation issues to codes or add the local-ref remediation text.

Why

The previously vague “page/line diagnostics” behavior is now one explicit, independently reviewable output contract.

Validation

  • python -m pytest tests/test_snippet_diagnostic_format.py (2 passed)
  • python -m ruff check scripts/snippets/model.py tests/test_snippet_diagnostic_format.py
  • python -m mypy scripts/snippets/model.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