From 288d113c7010508dcbf4b8726c66ef257c1ec1fb 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 | 6 +++++- 3 files changed, 13 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..85cc6fd482a 100644 --- a/lexicons/com/atproto/admin/searchRepos.json +++ b/lexicons/com/atproto/admin/searchRepos.json @@ -8,7 +8,11 @@ "parameters": { "type": "params", "properties": { - "term": { "type": "string" }, + "term": { + "type": "string", + "description": "DEPRECATED: use 'q' instead" + }, + "q": { "type": "string" }, "invitedBy": { "type": "string" }, "limit": { "type": "integer",