pl-api: More blind search and replace before actual testing
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -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),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user