Skip to content

Commit 50ecdba

Browse files
committed
feat: remove special case code for fields ending in "date". Closes #1
1 parent ef1286f commit 50ecdba

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/process-schema.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,7 @@ export function schemaToType(
347347
};
348348
}
349349

350-
const type =
351-
schemaObject.type === 'string' && schemaObject.format?.includes('date')
352-
? 'Date'
353-
: schemaObject.type?.toString() || 'never';
350+
const type = schemaObject.type?.toString() || ('never' as const);
354351

355352
if (type === 'never') {
356353
console.warn(

0 commit comments

Comments
 (0)