dependentSchemas
Category: Keyword — presence of a specific JSON Schema keyword triggers this rule
Error Codes
| Profile | Code | Severity |
|---|---|---|
| openai.so.2026-04-30 | OAI-K-dependentSchemas | Forbid |
| anthropic.so.2026-04-30 | ANT-K-dependentSchemas | Forbid |
Description
Flag usage of the 'dependentSchemas' keyword according to the active provider profile.
Provider Evidence
| Profile | Status | Source | Basis |
|---|---|---|---|
| anthropic.so.2026-04-30 | inferred | Anthropic JSON Schema limitations | Cross-field applicator absent from the documented supported subset. |
| openai.so.2026-04-30 | documented | OpenAI type-specific keywords | — |
Rationale
Provider profiles may enforce different behavior and severity for this rule; use the table below for the selected profile.
Bad Example
{ "type": "object", "dependentSchemas": true, "properties": {} }
Good Example
{
"type": "object",
"properties": {
"name": { "type": "string" }
}
}