From ca1668dd85715ca0b535af9cd3efb93efb69b259 Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Sun, 14 Jun 2026 16:46:34 +0200 Subject: [PATCH] feat(swagger): update swagger (#10278) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com> --- swagger/docs.go | 4 ++-- swagger/swagger.json | 4 ++-- swagger/swagger.yaml | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/swagger/docs.go b/swagger/docs.go index 8da5bd402..dded35c43 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -5767,11 +5767,11 @@ const docTemplate = `{ } }, "redacted_preview": { - "description": "RedactedPreview is the input with mask-action spans replaced\nby their placeholders. Identical to Text when no findings or\nwhen the strongest action is block/route_local (which don't\nrewrite content).", + "description": "RedactedPreview is the input with mask-action spans replaced\nby their placeholders. Identical to Text when no findings or\nwhen the strongest action is block/allow (which don't rewrite\ncontent).", "type": "string" }, "suggested_action": { - "description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"route_local\", \"mask\", or \"allow\" (no findings).", + "description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"mask\", or \"allow\" (no findings, or all findings\nresolved to the allow action).", "type": "string" } } diff --git a/swagger/swagger.json b/swagger/swagger.json index 7863cf235..2079c378d 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -5764,11 +5764,11 @@ } }, "redacted_preview": { - "description": "RedactedPreview is the input with mask-action spans replaced\nby their placeholders. Identical to Text when no findings or\nwhen the strongest action is block/route_local (which don't\nrewrite content).", + "description": "RedactedPreview is the input with mask-action spans replaced\nby their placeholders. Identical to Text when no findings or\nwhen the strongest action is block/allow (which don't rewrite\ncontent).", "type": "string" }, "suggested_action": { - "description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"route_local\", \"mask\", or \"allow\" (no findings).", + "description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"mask\", or \"allow\" (no findings, or all findings\nresolved to the allow action).", "type": "string" } } diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 320d45436..4a0de31de 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -1884,13 +1884,14 @@ definitions: description: |- RedactedPreview is the input with mask-action spans replaced by their placeholders. Identical to Text when no findings or - when the strongest action is block/route_local (which don't - rewrite content). + when the strongest action is block/allow (which don't rewrite + content). type: string suggested_action: description: |- SuggestedAction is the strongest action across all findings: - "block", "route_local", "mask", or "allow" (no findings). + "block", "mask", or "allow" (no findings, or all findings + resolved to the allow action). type: string type: object schema.PIIFinding: