Set default projection field to card in profiles schema and adjust import formatting in schema.ts.

This commit is contained in:
MartinBraquet
2026-07-30 00:19:06 +02:00
parent 8935e8c10c
commit 281555439c

View File

@@ -813,7 +813,7 @@ export const API = (_apiTypeCheck = {
// `card` trims the response to the fields the profile grid renders, and replaces the
// rich-text `bio` with a truncated `bio_snippet`. Defaults to `full` so existing API
// consumers keep getting the complete row.
projection: z.enum(['card', 'full']).optional().default('full'),
projection: z.enum(['card', 'full']).optional().default('card'),
})
.strict(),
returns: {} as {