Skip to content

fix(fetch): type error caused by useDates date param string coerce #706

fix(fetch): type error caused by useDates date param string coerce

fix(fetch): type error caused by useDates date param string coerce #706

Triggered via pull request May 18, 2026 18:39
Status Failure
Total duration 3m 31s
Artifacts

pr-checks.yaml

on: pull_request
Matrix: pr-checks
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 notice
pr-checks (ubuntu-latest, 22.x)
Process completed with exit code 1.
pr-checks (ubuntu-latest, 22.x)
next-app-with-fetch#test:snapshots: command (/home/runner/work/orval/orval/samples/next-app-with-fetch) /home/runner/.bun/bin/bun run test:snapshots exited (1)
[next-app-with-fetch] api-generation.spec.ts > API Generation Snapshots > samples/next-app-with-fetch/app/gen/pets/pets.ts: test-utils/snapshot-testing.ts#L75
Error: Snapshot `API Generation Snapshots > samples/next-app-with-fetch/app/gen/pets/pets.ts 1` mismatched - Expected + Received @@ -97,11 +97,11 @@ export const getListPetsUrl = (params?: ListPetsParams) => { const normalizedParams = new URLSearchParams(); Object.entries(params || {}).forEach(([key, value]) => { if (value !== undefined) { - normalizedParams.append(key, value === null ? 'null' : value.toString()); + normalizedParams.append(key, value === null ? 'null' : String(value)); } }); const stringifiedParams = normalizedParams.toString(); ❯ ../../test-utils/snapshot-testing.ts:75:9
pr-checks (windows-latest, 22.x)
The strategy configuration was canceled because "pr-checks.ubuntu-latest_22_x" failed
pr-checks (windows-latest, 22.x)
The operation was canceled.
pr-checks (windows-latest, 22.x)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026