We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1286f commit 50ecdbaCopy full SHA for 50ecdba
1 file changed
lib/process-schema.ts
@@ -347,10 +347,7 @@ export function schemaToType(
347
};
348
}
349
350
- const type =
351
- schemaObject.type === 'string' && schemaObject.format?.includes('date')
352
- ? 'Date'
353
- : schemaObject.type?.toString() || 'never';
+ const type = schemaObject.type?.toString() || ('never' as const);
354
355
if (type === 'never') {
356
console.warn(
0 commit comments