Description
First mention in #3132. Given the following valibot resolver:
{
name: 'valibot',
'~resolvers': {
number(ctx) {
const { $, plugin, symbols, schema } = ctx;
const { v } = symbols;
const big = plugin.symbolOnce('Big', {
external: 'big.js',
importKind: 'named',
});
return $(v).attr('instance').call(big);
},
},
},
There is no way to handle the behavior of default numbers, leading to improper codegen like this:
I am unsure if Zod has the same issue.
Reproducible example or configuration
https://stackblitz.com/edit/ttamttam-hey-api-default-resolvers
OpenAPI specification (optional)
No response
System information (optional)
No response
Description
First mention in #3132. Given the following valibot resolver:
There is no way to handle the behavior of
defaultnumbers, leading to improper codegen like this:I am unsure if Zod has the same issue.
Reproducible example or configuration
https://stackblitz.com/edit/ttamttam-hey-api-default-resolvers
OpenAPI specification (optional)
No response
System information (optional)
No response