Skip to main content

patternProperties

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

Error Codes​

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

Description​

Flag usage of the 'patternProperties' keyword, which is discouraged by openai.so.2026-04-30

Provider Evidence​

ProfileStatusSourceBasis
openai.so.2026-04-30inferredOpenAI type-specific keywordsMentioned only as unavailable for fine-tuned models, not as supported for the standard subset.

Rationale​

The openai.so.2026-04-30 structured-output provider discourages use of the 'patternProperties' keyword. Schemas using this keyword may be rejected or silently altered.

Bad Example​

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

Good Example​

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