Test Data for GLX Validator
This directory contains test data for validating the GLX specification validator.
Directory Structure
valid/- Valid archives that should pass validationinvalid/- Invalid archives that should fail validation
Test Cases
Valid Archives
minimal-example/- Minimal valid archive with one person and required vocabularies
Invalid Archives
missing-vocabularies/- Archive missing required property vocabularies (should warn about unknown properties)broken-references/- Archive with invalid entity references (non-existent persons, citations, sources)invalid-properties/- Archive with properties that don't exist in vocabulariesinvalid-entity-ids/- Archive with entity IDs that contain invalid characters (underscores)duplicate-ids/- Archive with duplicate entity IDs across filesinvalid-relationship-participants/- Archive with relationship participants referencing non-existent personsinvalid-assertion-claims/- Archive with assertions using unknown claim names
Existing Test Files
The following files were copied from the original testdata directory and are used by existing unit tests:
valid/assertion-with-participant.glxvalid/person-with-properties.glxinvalid/assertion-participant-and-claim.glxinvalid/assertion-participant-and-value.glxinvalid/assertion-participant-invalid-person.glxinvalid/assertion-participant-invalid-role.glxinvalid/assertion-unknown-claim.glx
Usage
These test cases are used by the Go test suite to ensure the validator correctly identifies and reports validation issues.