Skip to content

Commit ca1668d

Browse files
localai-botmudler
andauthored
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>
1 parent fdc352a commit ca1668d

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

swagger/docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5767,11 +5767,11 @@ const docTemplate = `{
57675767
}
57685768
},
57695769
"redacted_preview": {
5770-
"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).",
5770+
"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).",
57715771
"type": "string"
57725772
},
57735773
"suggested_action": {
5774-
"description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"route_local\", \"mask\", or \"allow\" (no findings).",
5774+
"description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"mask\", or \"allow\" (no findings, or all findings\nresolved to the allow action).",
57755775
"type": "string"
57765776
}
57775777
}

swagger/swagger.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5764,11 +5764,11 @@
57645764
}
57655765
},
57665766
"redacted_preview": {
5767-
"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).",
5767+
"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).",
57685768
"type": "string"
57695769
},
57705770
"suggested_action": {
5771-
"description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"route_local\", \"mask\", or \"allow\" (no findings).",
5771+
"description": "SuggestedAction is the strongest action across all findings:\n\"block\", \"mask\", or \"allow\" (no findings, or all findings\nresolved to the allow action).",
57725772
"type": "string"
57735773
}
57745774
}

swagger/swagger.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,13 +1884,14 @@ definitions:
18841884
description: |-
18851885
RedactedPreview is the input with mask-action spans replaced
18861886
by their placeholders. Identical to Text when no findings or
1887-
when the strongest action is block/route_local (which don't
1888-
rewrite content).
1887+
when the strongest action is block/allow (which don't rewrite
1888+
content).
18891889
type: string
18901890
suggested_action:
18911891
description: |-
18921892
SuggestedAction is the strongest action across all findings:
1893-
"block", "route_local", "mask", or "allow" (no findings).
1893+
"block", "mask", or "allow" (no findings, or all findings
1894+
resolved to the allow action).
18941895
type: string
18951896
type: object
18961897
schema.PIIFinding:

0 commit comments

Comments
 (0)