Skip to content

QWED's infrastructure is attested by Docker, Snyk, CircleCI, Netlify, Mintlify, Sentry, Cloudflare, CodeRabbit, NVIDIA Inception, Buildkite, GitLab, Heroku, Atlassian.

Back to Engine Stack
Structural Validation

Validate Structure
And the Math Inside It.

LLMs generate JSON that looks right but contains structural errors and arithmetic mistakes. QWED's Schema Verifier performs deterministic JSON/type validation with embedded math verification for computed fields.

LLM-Generated Invoice JSON
{
  "items": [
    {"name": "Widget A", "qty": 3, "price": 29.99},
    {"name": "Widget B", "qty": 2, "price": 49.99}
  ],
  "subtotal": 199.95,
  "tax": 18.00,
  "total": 210.95
}
QWED Verification
>> Schema: VALID (matches InvoiceSchema v2)
>> Subtotal: 3×29.99 + 2×49.99 = 189.95 ≠ 199.95 MISMATCH
>> Tax (10%): 189.95 × 0.10 = 18.995 ≠ 18.00 MISMATCH
>> Total: RECOMPUTED → $208.95

Structure + Math = Complete Validation

JSON Schema validation checks types and required fields. But it can't verify that a "total" field actually equals the sum of line items. QWED bridges this gap.

Schema Compliance

Validate against JSON Schema, OpenAPI specs, or custom type definitions. Catch missing fields, wrong types, and structural violations.

Math Delegation

Computed fields (totals, averages, percentages) are automatically delegated to the Math Verifier engine for symbolic validation.

Nested Validation

Recursively validate deeply nested JSON structures with cross-field constraints and referential integrity checks.

Engine Capabilities

JSON Schema Validation
Full JSON Schema Draft 7/2020-12 support with custom extensions.
Type Checking
Validate field types, enums, patterns, and format constraints.
Math Field Verification
Automatically identify and verify computed/aggregated fields.
Cross-Field Rules
Define constraints between fields (e.g., end_date > start_date).
OpenAPI Compatibility
Validate API responses against OpenAPI/Swagger specifications.
Custom Schemas
Define domain-specific schemas with embedded verification rules.

The Complete Output Validator

When your AI generates structured data—invoices, reports, API responses, configuration files—QWED ensures both the structure and the numbers are correct.

Math + Schema Synergy

QWED's unique advantage is combining structural validation with mathematical verification. A JSON invoice that passes schema checks but has wrong totals is caught by the Math Verifier integration.

Ready to validate AI-generated data?