Skip to content

fix: validate error catalog YAML syntax - #55

Merged
philipgreat merged 2 commits into
mainfrom
issue/51-validate-error-catalog-yaml
Aug 11, 2026
Merged

philipgreat merged 2 commits into
mainfrom
issue/51-validate-error-catalog-yaml

Conversation

@philipgreat

Copy link
Copy Markdown
Contributor

Summary

  • introduce the dependency-free TeaQL error catalog and candidate scanner
  • validate the catalog's supported YAML subset before checking allocations
  • reject malformed top-level structure, indentation, list entries, and scalars with line diagnostics
  • add focused regression coverage for malformed YAML

The preserved local baseline already includes direct test execution support and comment/literal masking; Issues #52 and #53 will be audited against main after this PR lands.

Verification

python3 -m unittest tools.test_error_catalog -v
python3 tools/test_error_catalog.py
python3 tools/error_catalog.py validate errors/catalog.yml
python3 tools/error_catalog.py scan --output /tmp/teaql-error-candidates-51.yml
git diff --check

Fixes #51
Related to #52
Related to #53

@philipgreat
philipgreat merged commit f4ed0de into main Aug 11, 2026
1 check passed
@philipgreat
philipgreat deleted the issue/51-validate-error-catalog-yaml branch August 11, 2026 08:01
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.

Validate error catalog YAML syntax before accepting allocations

1 participant