Skip to main content

format-restricted

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

Error Codes

ProfileCode
openai.so.2026-04-30OAI-K-format-restricted
anthropic.so.2026-04-30ANT-K-format-restricted

Description

Restrict values of the 'format' keyword to those accepted by openai.so.2026-04-30

Rationale

openai.so.2026-04-30 only supports specific values for the 'format' keyword. Using unsupported values will cause validation errors at the API level.

Bad Example

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

Good Example

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