From c755cd5ab515870c37b683ff0abbd204ed281441 Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Thu, 23 Apr 2026 23:26:50 +0200 Subject: [PATCH] feat(swagger): update swagger (#9518) 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 | 14 ++++++++++++++ swagger/swagger.json | 14 ++++++++++++++ swagger/swagger.yaml | 15 +++++++++++++++ 3 files changed, 43 insertions(+) diff --git a/swagger/docs.go b/swagger/docs.go index d74b8e5c2..b7f5617a5 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -3442,6 +3442,7 @@ const docTemplate = `{ } }, "is_real": { + "description": "Liveness fields — see FaceVerifyResponse for why these are pointers.", "type": "boolean" }, "race": { @@ -3656,12 +3657,25 @@ const docTemplate = `{ "distance": { "type": "number" }, + "img1_antispoof_score": { + "type": "number" + }, "img1_area": { "$ref": "#/definitions/schema.FacialArea" }, + "img1_is_real": { + "description": "Liveness fields are only populated when the request set\nanti_spoofing=true. Pointers keep them fully absent from the\nJSON response otherwise, so callers can tell \"not checked\"\napart from \"checked and fake\" (which would collapse to zero\nvalues with plain bool+omitempty).", + "type": "boolean" + }, + "img2_antispoof_score": { + "type": "number" + }, "img2_area": { "$ref": "#/definitions/schema.FacialArea" }, + "img2_is_real": { + "type": "boolean" + }, "model": { "type": "string" }, diff --git a/swagger/swagger.json b/swagger/swagger.json index 59e562dcd..907b9594c 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -3439,6 +3439,7 @@ } }, "is_real": { + "description": "Liveness fields — see FaceVerifyResponse for why these are pointers.", "type": "boolean" }, "race": { @@ -3653,12 +3654,25 @@ "distance": { "type": "number" }, + "img1_antispoof_score": { + "type": "number" + }, "img1_area": { "$ref": "#/definitions/schema.FacialArea" }, + "img1_is_real": { + "description": "Liveness fields are only populated when the request set\nanti_spoofing=true. Pointers keep them fully absent from the\nJSON response otherwise, so callers can tell \"not checked\"\napart from \"checked and fake\" (which would collapse to zero\nvalues with plain bool+omitempty).", + "type": "boolean" + }, + "img2_antispoof_score": { + "type": "number" + }, "img2_area": { "$ref": "#/definitions/schema.FacialArea" }, + "img2_is_real": { + "type": "boolean" + }, "model": { "type": "string" }, diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index a5f67331b..2a7f8e4cb 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -640,6 +640,7 @@ definitions: type: number type: object is_real: + description: Liveness fields — see FaceVerifyResponse for why these are pointers. type: boolean race: additionalProperties: @@ -780,10 +781,24 @@ definitions: type: number distance: type: number + img1_antispoof_score: + type: number img1_area: $ref: '#/definitions/schema.FacialArea' + img1_is_real: + description: |- + Liveness fields are only populated when the request set + anti_spoofing=true. Pointers keep them fully absent from the + JSON response otherwise, so callers can tell "not checked" + apart from "checked and fake" (which would collapse to zero + values with plain bool+omitempty). + type: boolean + img2_antispoof_score: + type: number img2_area: $ref: '#/definitions/schema.FacialArea' + img2_is_real: + type: boolean model: type: string processing_time_ms: