test: align Codex strict schema expectation

This commit is contained in:
Vasanthdev2004
2026-04-02 00:11:42 +05:30
parent b204ae722f
commit 936107f569

View File

@@ -72,7 +72,7 @@ describe('Codex provider config', () => {
}) })
describe('Codex request translation', () => { describe('Codex request translation', () => {
test('disables strict mode for tools with optional parameters', () => { test('normalizes optional parameters into strict Responses schemas', () => {
const tools = convertToolsToResponsesTools([ const tools = convertToolsToResponsesTools([
{ {
name: 'Agent', name: 'Agent',
@@ -102,9 +102,10 @@ describe('Codex request translation', () => {
prompt: { type: 'string' }, prompt: { type: 'string' },
subagent_type: { type: 'string' }, subagent_type: { type: 'string' },
}, },
required: ['description', 'prompt'], required: ['description', 'prompt', 'subagent_type'],
additionalProperties: false, additionalProperties: false,
}, },
strict: true,
}, },
]) ])
}) })