DOCUMENTATION / RULE REFERENCE

OpenAPI & JSON Schema Breaking Change: Request media type removed

By Soumik Ghosh ยท Published

The request body or one of its previously declared media types is absent. Check the Content-Type and encoder used by each affected caller before migrating.

Rule ID
request.content_removed
Direction
request
Classification
Breaking

What does a minimal example look like?

These examples illustrate the rule with contract fragments or detector evidence. The rule ID applies to detector findings with the relevant direction and policy context.

Before

JSON
{
  "content": {
    "application/json": {
      "schema": {
        "type": "object"
      }
    },
    "text/plain": {
      "schema": {
        "type": "string"
      }
    }
  }
}

After

JSON
{
  "content": {
    "application/json": {
      "schema": {
        "type": "object"
      }
    }
  }
}

What should I check in my application?

Find the operation and affected field in the scanned commit. Confirm the server policy and application intent, inspect any missing coverage, then test the complete candidate. This rule alone does not prove repository impact, runtime failure, or a safe automatic fix.

Replay classifier inputs and policy choices or compare these schemas in both directions.

API compatibility guides and tools

Use public API change evidence in your IDE with MCP

Browse public API change history, including OpenAI and Sentry.

Rule reference