pl-api: More blind search and replace before actual testing

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-10-14 20:54:44 +02:00
parent a6bc160caa
commit ea3addf388
47 changed files with 253 additions and 251 deletions

View File

@ -5,14 +5,14 @@ import { statusSchema } from './status';
/** @see {@link https://docs.gotosocial.org/en/latest/api/swagger.yaml#/definitions/interactionRequest} */
const interactionRequestSchema = v.object({
accepted_at: z.string().datetime().nullable().catch(null),
accepted_at: v.fallback(v.nullable(z.string().datetime()), null),
account: accountSchema,
created_at: z.string().datetime(),
id: v.string(),
rejected_at: z.string().datetime().nullable().catch(null),
rejected_at: v.fallback(v.nullable(z.string().datetime()), null),
reply: v.fallback(v.nullable(statusSchema), null),
status: v.fallback(v.nullable(statusSchema), null),
type: z.enum(['favourite', 'reply', 'reblog']),
type: v.picklist(['favourite', 'reply', 'reblog']),
uri: v.fallback(v.nullable(v.string()), null),
});