@opscogs/octools
    Preparing search index...

    Function strictClean

    • Report every way schema leaves the Anthropic/OpenAI strict subset.

      Rules: object root; only STRICT_KEYWORDS (no title, no x- keys, no numeric or string bounds); STRICT_TYPES and STRICT_FORMATS only; minItems 0 or 1; primitive enum values; additionalProperties: false on every object; $ref only to a root $defs entry, never inside allOf, never recursive. Returns an empty array for a clean schema; the schema itself is never modified.

      Parameters

      • schema: unknown

      Returns Finding[]