Struktur

verify

Validate artifact JSON format.

Synopsis

struktur verify --input <path>
struktur verify --stdin

Prop

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 --stdin

See also

On this page