Make the cursor field a required output in get*Feed (#206)
This commit is contained in:
parent
d64e4f6a75
commit
11928993dc
packages
api/src
server/src/lexicon
schemas/todo.social
@ -646,6 +646,7 @@ export const methodSchemas: MethodSchema[] = [
|
||||
feedItem: {
|
||||
type: 'object',
|
||||
required: [
|
||||
'cursor',
|
||||
'uri',
|
||||
'author',
|
||||
'record',
|
||||
@ -811,6 +812,7 @@ export const methodSchemas: MethodSchema[] = [
|
||||
feedItem: {
|
||||
type: 'object',
|
||||
required: [
|
||||
'cursor',
|
||||
'uri',
|
||||
'author',
|
||||
'record',
|
||||
|
@ -19,7 +19,7 @@ export interface OutputSchema {
|
||||
feed: FeedItem[];
|
||||
}
|
||||
export interface FeedItem {
|
||||
cursor?: string;
|
||||
cursor: string;
|
||||
uri: string;
|
||||
author: User;
|
||||
repostedBy?: User;
|
||||
|
@ -19,7 +19,7 @@ export interface OutputSchema {
|
||||
feed: FeedItem[];
|
||||
}
|
||||
export interface FeedItem {
|
||||
cursor?: string;
|
||||
cursor: string;
|
||||
uri: string;
|
||||
author: User;
|
||||
repostedBy?: User;
|
||||
|
@ -646,6 +646,7 @@ export const methodSchemas: MethodSchema[] = [
|
||||
feedItem: {
|
||||
type: 'object',
|
||||
required: [
|
||||
'cursor',
|
||||
'uri',
|
||||
'author',
|
||||
'record',
|
||||
@ -811,6 +812,7 @@ export const methodSchemas: MethodSchema[] = [
|
||||
feedItem: {
|
||||
type: 'object',
|
||||
required: [
|
||||
'cursor',
|
||||
'uri',
|
||||
'author',
|
||||
'record',
|
||||
|
@ -27,7 +27,7 @@ export interface OutputSchema {
|
||||
feed: FeedItem[];
|
||||
}
|
||||
export interface FeedItem {
|
||||
cursor?: string;
|
||||
cursor: string;
|
||||
uri: string;
|
||||
author: User;
|
||||
repostedBy?: User;
|
||||
|
@ -27,7 +27,7 @@ export interface OutputSchema {
|
||||
feed: FeedItem[];
|
||||
}
|
||||
export interface FeedItem {
|
||||
cursor?: string;
|
||||
cursor: string;
|
||||
uri: string;
|
||||
author: User;
|
||||
repostedBy?: User;
|
||||
|
@ -22,7 +22,7 @@
|
||||
"$defs": {
|
||||
"feedItem": {
|
||||
"type": "object",
|
||||
"required": ["uri", "author", "record", "replyCount", "repostCount", "likeCount", "indexedAt"],
|
||||
"required": ["cursor", "uri", "author", "record", "replyCount", "repostCount", "likeCount", "indexedAt"],
|
||||
"properties": {
|
||||
"cursor": {"type": "string"},
|
||||
"uri": {"type": "string"},
|
||||
|
@ -22,7 +22,7 @@
|
||||
"$defs": {
|
||||
"feedItem": {
|
||||
"type": "object",
|
||||
"required": ["uri", "author", "record", "replyCount", "repostCount", "likeCount", "indexedAt"],
|
||||
"required": ["cursor", "uri", "author", "record", "replyCount", "repostCount", "likeCount", "indexedAt"],
|
||||
"properties": {
|
||||
"cursor": {"type": "string"},
|
||||
"uri": {"type": "string"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user