Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
test(json-schema-to-zod): skip subnormal `multipleOf` cases the Ajv oracle underflows on (#4985)
This PR: - fixes a flaky failure in `property-semantics.test.ts`, seen on https://github.com/ComposioHQ/composio/actions/runs/39299841251/job/118221829145 (PR #4976, unrelated to its change) - skips generated cases where `multipleOf` is set and the value is subnormal, with `fc.pre`, and lists the exclusion with the other oracle limits in the file header - adds `does not treat a subnormal as an integer multiple` to `semantic-regressions.test.ts`, pinning that every builder rejects `-5e-324` for `multipleOf: 5` while Ajv accepts it ## Context fast-check generated `{ multipleOf: 5 }` with `-5e-324`, the smallest subnormal double. Ajv checks `(value / 5) % 1 === 0` in floating point, and `-5e-324 / 5` underflows to `-0`, so Ajv accepts. The converter's exact decimal check (`isJsonMultipleOf`) correctly rejects it: `-5e-324` is not a multiple of 5. The converter is right, and the oracle can't express this case. Verified: replaying the CI seed (`seed: -2109801589, path: "97"`) fails all builders on `next` and passes on this branch. `pnpm --filter @composio/json-schema-to-zod test` (2301 passed), `typecheck`, oxlint and prettier pass.