Make the cursor field a required output in get*Feed ()

This commit is contained in:
Paul Frazee 2022-10-04 12:28:49 -05:00 committed by GitHub
parent d64e4f6a75
commit 11928993dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 6 deletions
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"},