From 70197f87a32e0d428cd77a4c92ca8cd32970593b Mon Sep 17 00:00:00 2001 From: Adam Korolczuk Date: Fri, 30 Jun 2023 15:49:27 +0200 Subject: [PATCH] feat: add search response type at root result --- content/responses/search_results.yml | 8 ++++++++ content/responses/search_results_with_shared_links.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/content/responses/search_results.yml b/content/responses/search_results.yml index b43b8da8..5ae89a8d 100644 --- a/content/responses/search_results.yml +++ b/content/responses/search_results.yml @@ -12,6 +12,14 @@ description: |- allOf: - $ref: "../attributes/search_result_collection.yml" - properties: + type: + description: |- + Specifies the response as search result items without shared links + type: string + example: search_results_items + enum: + - search_results_items + nullable: false entries: description: |- The search results for the query provided. diff --git a/content/responses/search_results_with_shared_links.yml b/content/responses/search_results_with_shared_links.yml index 67bee8d9..dce66a3b 100644 --- a/content/responses/search_results_with_shared_links.yml +++ b/content/responses/search_results_with_shared_links.yml @@ -17,6 +17,14 @@ description: |- allOf: - $ref: "../attributes/search_result_collection.yml" - properties: + type: + description: |- + Specifies the response as search result items with shared links + type: string + example: search_results_with_shared_links + enum: + - search_results_with_shared_links + nullable: false entries: description: |- The search results for the query provided, including the