This guide publishes a small set of intentionally invalid capsule fixtures for consumers who need to see what the raw JSON Schema layer should reject.
Use these files when you want:
- structural failure examples for JSON Schema tooling
- regression fixtures for Ajv or other schema-validator integrations
- a clear distinction between schema-invalid capsules and validator-only failures such as
G16
The top-level example capsules in ../examples/ are mainly validator-facing teaching artifacts. Most of them are meant to pass, and the intentional negative G16 example remains structurally valid even though the live validator should reject it.
Raw-schema consumers need a different teaching layer: examples that are rejected before any live gate semantics or integrity recomputation are involved.
../examples/invalid/example-invalid-missing-neuro-concentrate.capsule.jsonMissing the requiredneuro_concentrateroot.../examples/invalid/example-invalid-relation-type.capsule.jsonUses a non-canonicalrelation_typevalue insiderecursive_layer.links.
The relation-type fixture keeps a correct integrity seal so the failure remains isolated to the documented enum violation instead of drifting into an accidental G16 mismatch.
These fixtures are intentionally small and teaching-oriented. They do not claim to cover every possible schema rejection or every validator-only failure class.
- schema-invalid fixtures under
../examples/invalid/Should fail direct JSON Schema validation - validator-negative fixture
../examples/example-validator-invalid-g16.capsule.jsonShould pass structural validation but fail the live validator onG16
This distinction matters when you are deciding whether you need:
- a portable structural contract check
- or the stronger live validator behavior
../examples/client/ajv-reject-invalid-capsules.mjs../examples/client/cjs-package-ajv-reject-invalid-capsules.cjs../examples/client/esm-package-ajv-reject-invalid-capsules.mjs../examples/client/ts-package-ajv-reject-invalid-capsules.tsschema-validation-recipes.mdintegrity-recipes.md
npm run check:invalid-examplesnpm run check:schema-recipesnpm run check:package-install