Multi-language Contract Validation
Goal
Ensure all language-specific implementations enforce the same contract and gate semantics.
Pattern
- Store canonical schemas in
templates/schemas. - Validate examples in each language CI pipeline.
- Reject builds on schema mismatch.
Suggested validators
- TypeScript: AJV-based validation
- Python: jsonschema validation
- Go: JSON schema validator package
- Java: networknt/json-schema-validator or equivalent
Required scenarios
- Valid contract should pass in all languages.
- Missing
required_gatesshould fail in all languages. - Invalid
decisionenum should fail in all languages.