Skip to main content

else

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

Error Codes​

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

Description​

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

Provider Evidence​

ProfileStatusSourceBasis
anthropic.so.2026-04-30inferredAnthropic JSON Schema limitationsConditional 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", "else": true, "properties": {} }

Good Example​

{
"type": "object",
"properties": {
"name": { "type": "string" }
}
}