TanStackOSS
    ai
    fix(ai): mark optional nested objects/arrays nullable under strict schema makeStructuredOutputCompatible adds every property to required[] under forStructuredOutput: true, but optional nested objects/arrays were taking the recursive branches and never reaching the 'null'-wrap — producing a schema that OpenAI-style strict json_schema providers reject. Wrap transformed composites as type: ['object', 'null'] / ['array', 'null'] when wasOptional. Extends the OpenRouter regression test with the previously-untested array case and a new nested-object case. Fixes #483 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build
Succeeded
CI Pipeline Execution

nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build

Click to copy
Linux
4 CPU cores
dfd99093484
18%

Cache hits

28 of 154 tasks used cache.

Get faster results

Learn how to enable distribution.

Atomizer enabled

41 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools