Skip to main content

oneOf

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

Error Codes​

ProfileCodeSeverity
openai.so.2026-04-30OAI-K-oneOfForbid

Description​

Flag usage of the 'oneOf' keyword, which is not supported by openai.so.2026-04-30

Provider Evidence​

ProfileStatusSourceBasis
openai.so.2026-04-30inferredOpenAI supported schemasAbsent from the documented supported schema subset.

Rationale​

The openai.so.2026-04-30 structured-output provider rejects the 'oneOf' keyword. Schemas using this keyword may be rejected or silently altered.

Bad Example​

{ "type": "object", "oneOf": true, "properties": {} }

Good Example​

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