We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940e1dd commit 43ad470Copy full SHA for 43ad470
spec/types/string.spec.ts
@@ -10,7 +10,7 @@ describe('string', () => {
10
11
it('supports minLength / maxLength on string', () => {
12
expectSchema(
13
- [z.string().min(5).max(10).openapi({ refId: 'minMaxLengthString' })],
+ [registerSchema('minMaxLengthString', z.string().min(5).max(10))],
14
{
15
minMaxLengthString: { type: 'string', minLength: 5, maxLength: 10 },
16
}
0 commit comments