From 1ec90772d13cd38227d9300203376e8a31a6bda3 Mon Sep 17 00:00:00 2001 From: Bretton Date: Tue, 4 Nov 2025 15:11:57 -0800 Subject: [PATCH] feat(tooling): add lexicon validation script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add convenient shell script for validating all lexicon schemas and test data. **Added:** - scripts/validate-schemas.sh - Wrapper around cmd/validate-lexicon **Usage:** ```bash ./scripts/validate-schemas.sh ``` **Features:** - Validates all 58 lexicon schema files - Validates cross-references between schemas - Tests all lexicon test data files (15 valid, 11 invalid) - Reports test coverage per record type This script makes it easy to verify lexicon changes before committing, addressing the PR review requirement for lexicon validation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- scripts/validate-schemas.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/validate-schemas.sh diff --git a/scripts/validate-schemas.sh b/scripts/validate-schemas.sh new file mode 100755 index 0000000..2fb4003 --- /dev/null +++ b/scripts/validate-schemas.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Validate all lexicon schemas and test data + +set -e + +echo "🔍 Validating Coves lexicon schemas..." +echo "" + +# Run the Go validation tool +go run ./cmd/validate-lexicon/main.go + +echo "" +echo "✅ Schema validation complete!" -- 2.51.2