schema: timestamp type instead of numeric.

This commit is contained in:
fiatjaf
2025-11-30 20:50:46 -03:00
parent 7261a4b515
commit a355f27adb

View File

@@ -149,7 +149,7 @@ func NewValidatorFromSchema(sch Schema) Validator {
}
return nil
},
"numeric": func(value string, spec *nextSpec) error {
"timestamp": func(value string, spec *nextSpec) error {
_, err := strconv.ParseUint(value, 10, 64)
return err
},