nemo_gym.server_runtime.request_handling.errors
nemo_gym.server_runtime.request_handling.errors
Request validation errors: bounded, escaped logs of what was wrong, and the 422 response FastAPI returns.
Module Contents
Functions
Data
_VALIDATION_ERROR_LOG_BODY_CHARS
_VALIDATION_ERROR_LOG_ERRORS_CHARS
_VALIDATION_ERROR_LOG_FIELD_CHARS
_VALIDATION_ERROR_LOG_LOC_ITEMS
_VALIDATION_ERROR_LOG_MAX_ERRORS
API
Return a quoted, control-safe prefix bounded by max_chars.
Return bounded, control-safe text with a visible marker when truncated.
async
Render the error summaries for the log message, bounded by _VALIDATION_ERROR_LOG_ERRORS_CHARS.
async