Cleared 4m ago · jsonrainbow/json-schema #929 · PHP · ★ 3.6k · MIT

date-time validation fails if more than 6 fractional second digits supplied

I have found that if a payload contains a date-time with more than 6 fractional seconds it will fail validation. Issue seems to stem from the fact that PHP DateTime will only allow 6 digits and fail after that. Could it truncate the fractional seconds to 6 digits before parsing…

What we checked

Similar unclaimed issues