Skip to content

feat(core): add $dynamicRef / $dynamicAnchor support for OpenAPI 3.1 #826

feat(core): add $dynamicRef / $dynamicAnchor support for OpenAPI 3.1

feat(core): add $dynamicRef / $dynamicAnchor support for OpenAPI 3.1 #826

Triggered via pull request May 24, 2026 11:45
Status Failure
Total duration 3m 23s
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)
dynamic-ref#test:snapshots: command (/home/runner/work/orval/orval/samples/dynamic-ref) /home/runner/.bun/bin/bun run test:snapshots exited (1)
[dynamic-ref] api-generation.spec.ts > API Generation Snapshots > samples/dynamic-ref/api/petstore.ts: test-utils/snapshot-testing.ts#L75
Error: Snapshot `API Generation Snapshots > samples/dynamic-ref/api/petstore.ts 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ /** - * Generated by orval v8.11.0 🍺 + * Generated by orval v8.12.3 🍺 * Do not edit manually. * Petstore with dynamic references * Demonstrates OpenAPI 3.1 `$dynamicRef` / `$dynamicAnchor` for polymorphic schema dispatch. * The `Pet` base schema defines a `$dynamicAnchor` that is overridden by `Cat` and `Dog`. Each schema has a `playmates` property using `$dynamicRef: '#Pet'` — which resolves to `Cat[]` inside Cat, and `Dog[]` inside Dog. * `Lizard` does NOT override the anchor, so its `playmates` falls back to `unknown` since only explicit bindings are resolved. ❯ ../../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