Skip to content

Commit

Permalink
lexicons: make unspecced search endpoints return skeleton obj
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Sep 22, 2023
1 parent a74d871 commit a698e65
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions lexicons/app/bsky/unspecced/defs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.defs",
"defs": {
"skeletonSearchPost": {
"type": "object",
"required": ["uri"],
"properties": {
"uri": { "type": "string", "format": "at-uri" }
}
},
"skeletonSearchActor": {
"type": "object",
"required": ["did"],
"properties": {
"did": { "type": "string", "format": "did" }
}
}
}
}
4 changes: 2 additions & 2 deletions lexicons/app/bsky/unspecced/searchActorsSkeleton.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"actors": {
"type": "array",
"items": {
"type": "string",
"format": "did"
"type": "ref",
"ref": "app.bsky.unspecced.defs#skeletonSearchActor"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lexicons/app/bsky/unspecced/searchPostsSkeleton.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"posts": {
"type": "array",
"items": {
"type": "string",
"format": "at-uri"
"type": "ref",
"ref": "app.bsky.unspecced.defs#skeletonSearchPost"
}
}
}
Expand Down

0 comments on commit a698e65

Please sign in to comment.