Skip to main content

dependentSchemas

Category: Keyword — presence of a specific JSON Schema keyword triggers this rule

Error Codes​

ProfileCodeSeverity
openai.so.2026-04-30OAI-K-dependentSchemasForbid
anthropic.so.2026-04-30ANT-K-dependentSchemasForbid

Description​

Flag usage of the 'dependentSchemas' keyword according to the active provider profile.

Provider Evidence​

ProfileStatusSourceBasis
anthropic.so.2026-04-30inferredAnthropic JSON Schema limitationsCross-field applicator absent from the documented supported subset.
openai.so.2026-04-30documentedOpenAI 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" }
}
}