Обновить зависимости проекта
CI / Rust Checks (pull_request) Failing after 3s
CI / UI Checks (pull_request) Has been skipped
CI / Frontend E2E (pull_request) Has been skipped
CI / Deployment Manifests (pull_request) Has been skipped
CI / Deploy (pull_request) Has been skipped

This commit is contained in:
2026-07-06 22:47:24 +03:00
parent c7e5efa976
commit fd8571ad10
20 changed files with 773 additions and 1073 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
FROM rust:1.85-bookworm AS deps
FROM rust:1.96.1-bookworm AS deps
WORKDIR /app
@@ -36,7 +36,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/app/target \
SQLX_OFFLINE=true cargo build --release -p admin-api
FROM rust:1.85-bookworm AS builder
FROM rust:1.96.1-bookworm AS builder
WORKDIR /app
@@ -125,15 +125,15 @@ pub(super) fn validate_approval_policy(
));
}
if let Some(message) = policy.elicitation_message.as_ref() {
if message.chars().count() > 240 {
return Err(ApiError::validation_with_context(
"approval elicitation message must be at most 240 characters".to_owned(),
json!({
"field": "execution_config.approval_policy.elicitation_message",
}),
));
}
if let Some(message) = policy.elicitation_message.as_ref()
&& message.chars().count() > 240
{
return Err(ApiError::validation_with_context(
"approval elicitation message must be at most 240 characters".to_owned(),
json!({
"field": "execution_config.approval_policy.elicitation_message",
}),
));
}
Ok(())