Skip to main content

external-refs

Category: Structural — overall schema structure triggers this rule

Error Codes​

ProfileCodeSeverity
openai.so.2026-04-30OAI-S-external-refsForbid
anthropic.so.2026-04-30ANT-S-external-refsForbid

Description​

External $ref values are not supported

Provider Evidence​

ProfileStatusSourceBasis
anthropic.so.2026-04-30inferredAnthropic JSON Schema limitationsAnthropic documents local references but not retrieval of external references.
openai.so.2026-04-30inferredOpenAI definitionsOpenAI documents local definitions, but not external reference retrieval.

Rationale​

Providers require references to be internal to the submitted schema.

Bad Example​

{ "type": "object", "properties": { "address": { "$ref": "https://example.com/address.json" } } }

Good Example​

{ "type": "object", "$defs": { "Address": { "type": "object" } }, "properties": { "address": { "$ref": "#/$defs/Address" } } }