Skip to content

Commit

Permalink
Issue feat: Comment date validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshataKatwal16 committed Jan 24, 2025
1 parent eeaad43 commit 4a3eb5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/GeneratedSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ export const GenerateSchemaAndUiSchema = (
fieldSchema.pattern = getCurrentYearPattern();
}
if (field?.validation?.includes('dob')) {
fieldSchema.minimum = '1900-01-01';
fieldSchema.maximum = getLastDayDate();
// fieldSchema.minimum = '1900-01-01';
// fieldSchema.maximum = getLastDayDate();
}
fieldSchema.validation = field.validation;
}
Expand Down

0 comments on commit 4a3eb5e

Please sign in to comment.