Skip to content

Conversation

@soartec-lab
Copy link
Member

fix #2478

Summary

Remove the deprecated override.coerceTypes option. Users should use override.zod.coerce instead.
The override.coerceTypes option was deprecated in favor of the more flexible override.zod.coerce configuration, which provides granular control over coercion for different parameter types (query, body, response, etc.). Removing the deprecated option simplifies the codebase and encourages users to adopt the better alternative.

 export default {
   petstore: {
     output: {
       override: {
-        coerceTypes: true,
+        zod: {
+          coerce: {
+            query: true,
+          },
+        },
       },
     },
   },
 };

@melloware melloware added the breaking change Breaking change on upgrade label Oct 26, 2025
@soartec-lab soartec-lab marked this pull request as ready for review October 27, 2025 00:55
@soartec-lab soartec-lab added enhancement New feature or request zod Zod related issue labels Oct 27, 2025
@soartec-lab soartec-lab added this to the 8.0.0-rc.0 milestone Oct 27, 2025
@soartec-lab soartec-lab merged commit 5d0eaef into orval-labs:master Oct 27, 2025
2 checks passed
zhu-hong pushed a commit to zhu-hong/orval that referenced this pull request Oct 29, 2025
…s#2484)

* feat: remove override.coerceTypes option (BREAKING CHANGE)

* docs: remove guide

---------

Co-authored-by: Melloware <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Breaking change on upgrade enhancement New feature or request zod Zod related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8.0.0: breaking changes

2 participants