MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / validation_failed

Function validation_failed

src/dashboard/settings_api.rs:275–283  ·  view source on GitHub ↗
(errors: &[Value])

Source from the content-addressed store, hash-verified

273}
274
275fn validation_failed(errors: &[Value]) -> JsonError {
276 (
277 StatusCode::BAD_REQUEST,
278 Json(json!({
279 "detail": "settings validation failed",
280 "validation_errors": errors,
281 })),
282 )
283}
284
285fn patch_shape_error(scope: &str, err: &serde_json::Error) -> JsonError {
286 let message = format!("invalid {scope} patch: {err}");

Callers 2

patch_project_settingsFunction · 0.85
patch_user_settingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected