verify
Validate artifact JSON format.
Synopsis
struktur verify --input <path>
struktur verify --stdinProp
Type
Output on success:
{ "valid": true, "artifacts": 2 }Throws with a descriptive error on invalid artifact JSON (schema path, expected type, etc.).
Usage
Use this to verify your preprocessing pipeline produces valid artifact format before running extraction.
# From stdin
cat artifacts.json | struktur verify --stdin
# From a file
struktur verify --input artifacts.json
# Verify parse output
struktur parse --input document.pdf | struktur verify --stdinSee also
- Artifact Format — the JSON spec
- parse — convert files to artifact JSON