This commit is contained in:
2025-03-17 21:01:15 +01:00
9 changed files with 333 additions and 240 deletions

View File

@@ -1,8 +1,7 @@
import {
type InferOutput,
null as Null,
any,
array,
InferOutput,
null as Null,
nullable,
object,
parse,
@@ -56,8 +55,30 @@ const getUserImagesResponseValidator = array(
ImageName: string(),
Image: Null(),
}),
Tags: any(),
Links: any(),
Tags: nullable(
array(
object({
ID: pipe(string(), uuid()),
TagID: pipe(string(), uuid()),
ImageID: pipe(string(), uuid()),
Tag: object({
ID: pipe(string(), uuid()),
Tag: string(),
UserID: pipe(string(), uuid()),
}),
}),
),
),
Links: nullable(
array(
object({
ID: pipe(string(), uuid()),
Links: string(),
ImageID: pipe(string(), uuid()),
}),
),
),
Text: nullable(
array(
object({