mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 22:20:31 +08:00
FastAPI's JSON parser accepts NaN/Infinity, so a crafted entry PATCH stored a verdict that made every later read of the entry fail. Reject it with a 422 in the route: a model validator's 422 body would echo the value and fail to serialise as well. Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>