Skip to content

Commit c755cd5

Browse files
localai-botmudler
andauthored
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>
1 parent 0fb04f7 commit c755cd5

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

swagger/docs.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3442,6 +3442,7 @@ const docTemplate = `{
34423442
}
34433443
},
34443444
"is_real": {
3445+
"description": "Liveness fields — see FaceVerifyResponse for why these are pointers.",
34453446
"type": "boolean"
34463447
},
34473448
"race": {
@@ -3656,12 +3657,25 @@ const docTemplate = `{
36563657
"distance": {
36573658
"type": "number"
36583659
},
3660+
"img1_antispoof_score": {
3661+
"type": "number"
3662+
},
36593663
"img1_area": {
36603664
"$ref": "#/definitions/schema.FacialArea"
36613665
},
3666+
"img1_is_real": {
3667+
"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).",
3668+
"type": "boolean"
3669+
},
3670+
"img2_antispoof_score": {
3671+
"type": "number"
3672+
},
36623673
"img2_area": {
36633674
"$ref": "#/definitions/schema.FacialArea"
36643675
},
3676+
"img2_is_real": {
3677+
"type": "boolean"
3678+
},
36653679
"model": {
36663680
"type": "string"
36673681
},

swagger/swagger.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,6 +3439,7 @@
34393439
}
34403440
},
34413441
"is_real": {
3442+
"description": "Liveness fields — see FaceVerifyResponse for why these are pointers.",
34423443
"type": "boolean"
34433444
},
34443445
"race": {
@@ -3653,12 +3654,25 @@
36533654
"distance": {
36543655
"type": "number"
36553656
},
3657+
"img1_antispoof_score": {
3658+
"type": "number"
3659+
},
36563660
"img1_area": {
36573661
"$ref": "#/definitions/schema.FacialArea"
36583662
},
3663+
"img1_is_real": {
3664+
"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).",
3665+
"type": "boolean"
3666+
},
3667+
"img2_antispoof_score": {
3668+
"type": "number"
3669+
},
36593670
"img2_area": {
36603671
"$ref": "#/definitions/schema.FacialArea"
36613672
},
3673+
"img2_is_real": {
3674+
"type": "boolean"
3675+
},
36623676
"model": {
36633677
"type": "string"
36643678
},

swagger/swagger.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ definitions:
640640
type: number
641641
type: object
642642
is_real:
643+
description: Liveness fields — see FaceVerifyResponse for why these are pointers.
643644
type: boolean
644645
race:
645646
additionalProperties:
@@ -780,10 +781,24 @@ definitions:
780781
type: number
781782
distance:
782783
type: number
784+
img1_antispoof_score:
785+
type: number
783786
img1_area:
784787
$ref: '#/definitions/schema.FacialArea'
788+
img1_is_real:
789+
description: |-
790+
Liveness fields are only populated when the request set
791+
anti_spoofing=true. Pointers keep them fully absent from the
792+
JSON response otherwise, so callers can tell "not checked"
793+
apart from "checked and fake" (which would collapse to zero
794+
values with plain bool+omitempty).
795+
type: boolean
796+
img2_antispoof_score:
797+
type: number
785798
img2_area:
786799
$ref: '#/definitions/schema.FacialArea'
800+
img2_is_real:
801+
type: boolean
787802
model:
788803
type: string
789804
processing_time_ms:

0 commit comments

Comments
 (0)