refactor!: migrate class-validator to zod (#26597)

This commit is contained in:
Timon
2026-04-14 23:39:03 +02:00
committed by GitHub
parent 3753b7a4d1
commit 7d8f843be6
318 changed files with 7830 additions and 8316 deletions
+4 -3
View File
@@ -18,8 +18,9 @@ class OnThisDayDto {
/// Year for on this day memory
///
/// Minimum value: 1
num year;
/// Minimum value: 1000
/// Maximum value: 9999
int year;
@override
bool operator ==(Object other) => identical(this, other) || other is OnThisDayDto &&
@@ -48,7 +49,7 @@ class OnThisDayDto {
final json = value.cast<String, dynamic>();
return OnThisDayDto(
year: num.parse('${json[r'year']}'),
year: mapValueOfType<int>(json, r'year')!,
);
}
return null;