Skip to main content

format-restricted

Category: Restriction — a keyword value outside the allowed set triggers this rule

Error Codes​

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

Description​

Restrict 'format' values according to the active provider profile.

Provider Evidence​

ProfileStatusSourceBasis
anthropic.so.2026-04-30documentedAnthropic JSON Schema limitations—
openai.so.2026-04-30documentedOpenAI supported formats—

Rationale​

Provider profiles may enforce different behavior and severity for this rule; use the table below for the selected profile.

Bad Example​

{ "type": "object", "format": "invalid-value", "properties": {} }

Good Example​

{ "type": "object", "format": "date-time", "properties": {} }