From e7f567081963bd0bc702dd0bd2b40a0f183d5158 Mon Sep 17 00:00:00 2001 From: Artsiom Tsybulko Date: Tue, 19 Aug 2025 17:43:14 +0300 Subject: [PATCH] 42188 - add match and search imageUrl, threshold, limit --- match_and_search.yml | 62 +++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/match_and_search.yml b/match_and_search.yml index 4e5edc3..9e1b819 100644 --- a/match_and_search.yml +++ b/match_and_search.yml @@ -27,34 +27,42 @@ paths: components: schemas: MatchAndSearchRequest: - allOf: - - type: object - properties: - tag: - type: string - description: "Session identificator, should be unique for each session." - images: - type: array - description: "Person's images." - items: - type: object - properties: - content: - $ref: './common.yml#/components/schemas/ImageData' - type: - $ref: './match.yml#/components/schemas/ImageSource' - groupIds: - type: array - description: "IDs of the groups in which the search is performed." - items: + type: object + properties: + tag: + type: string + description: "Session identificator, should be unique for each session." + images: + type: array + description: "Person's images." + items: + type: object + properties: + content: + $ref: './common.yml#/components/schemas/ImageData' + imageUrl: + description: "Image URL." type: string - format: uuid - tenant: - type: string - description: "Customer name" - env: - type: string - description: "Environment type" + type: + $ref: './match.yml#/components/schemas/ImageSource' + groupIds: + type: array + description: "IDs of the groups in which the search is performed." + items: + type: string + format: uuid + threshold: + description: "The similarity threshold." + type: number + limit: + description: "The maximum number of results to be returned." + type: integer + tenant: + type: string + description: "Customer name" + env: + type: string + description: "Environment type" MatchAndSearchResponse: allOf: