From b2319fd37a2ce64f475c035dce4ed006241201d3 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Mon, 18 Sep 2023 17:56:43 -0700 Subject: [PATCH] lexicons: add 'q' and mark 'term' as deprecated for search endpoints --- lexicons/app/bsky/actor/searchActors.json | 4 ++++ lexicons/app/bsky/actor/searchActorsTypeahead.json | 4 ++++ lexicons/com/atproto/admin/searchRepos.json | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lexicons/app/bsky/actor/searchActors.json b/lexicons/app/bsky/actor/searchActors.json index db783a1f1f7..f65e2fc953b 100644 --- a/lexicons/app/bsky/actor/searchActors.json +++ b/lexicons/app/bsky/actor/searchActors.json @@ -9,6 +9,10 @@ "type": "params", "properties": { "term": { + "type": "string", + "description": "DEPRECATED: use 'q' instead" + }, + "q": { "type": "string", "description": "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended" }, diff --git a/lexicons/app/bsky/actor/searchActorsTypeahead.json b/lexicons/app/bsky/actor/searchActorsTypeahead.json index dc561d2ad08..f94dd6c3f69 100644 --- a/lexicons/app/bsky/actor/searchActorsTypeahead.json +++ b/lexicons/app/bsky/actor/searchActorsTypeahead.json @@ -9,6 +9,10 @@ "type": "params", "properties": { "term": { + "type": "string", + "description": "DEPRECATED: use 'q' instead" + }, + "q": { "type": "string", "description": "search query prefix; not a full query string" }, diff --git a/lexicons/com/atproto/admin/searchRepos.json b/lexicons/com/atproto/admin/searchRepos.json index fb9c90f343c..73b4487d10b 100644 --- a/lexicons/com/atproto/admin/searchRepos.json +++ b/lexicons/com/atproto/admin/searchRepos.json @@ -8,7 +8,8 @@ "parameters": { "type": "params", "properties": { - "term": { "type": "string" }, + "term": { "type": "string", "description": "DEPRECATED: use 'q' instead" }, + "q": { "type": "string" }, "invitedBy": { "type": "string" }, "limit": { "type": "integer",