mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
3f62cd45e6
Follow-up to #3971. aimock supports fixture schema validation at startup via --validate-on-load, but it's opt-in. The showcase Dockerfile did not pass the flag, so fixtures with unrecognized response keys (e.g. "text" instead of "content") loaded silently and only failed at request time with HTTP 500. That's what crashed crewai-crews on startup. Changes: - showcase/aimock/Dockerfile: pass --validate-on-load so broken fixtures fail the container boot, not individual requests. - showcase/scripts/__tests__/aimock-fixtures.test.ts: new vitest spec that loads feature-parity.json and smoke.json via @copilotkit/aimock's loadFixtureFile + validateFixtures and asserts zero errors. Runs as part of the existing showcase-validate CI workflow. - showcase/scripts/package.json: add @copilotkit/aimock dependency for the validator import. Verified red-green: with the pre-#3971 broken "text" fixtures, validateFixtures flags 5 errors; post-#3971 it returns zero. Docker red-green: container with an intentionally broken fixture fails to start with "Validation failed: 1 error(s)" and non-zero exit.