🔍
AB-042

Response Matches Spec

📋 OpenAPI Pillar: Discovery Moderate effort Severity: low Est. cost: $10-50 Gap: documentation Fix: deterministic

What it means

Your API responses match what your specification promises.

Why it matters

If responses don't match the spec, agents get errors they can't predict. Consistency is key for trust.

Evidence expected

This rule is verified by:

openapi json_schema Source: OpenAPI / JSON Schema
✗

What's wrong

Spec says response has 'name' field, but actual response has 'username'. Agents break.

✓

What's right

Responses exactly match the specification.

Check this rule on your site

Enter your URL to check just this one rule (AB-001).

Related rules in OpenAPI

Machine-Readable

This rule is also available as JSON: /rules/AB-042.json

Explore More

  • All Rules

    Browse the complete rules catalog

  • Agent Guide

    Learn how to fix this rule

  • Blog

    Related articles on agent readiness