rategame-shared 1.1.521 → 1.1.522
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schemas/article.js +3 -3
- package/package.json +1 -1
package/dist/schemas/article.js
CHANGED
|
@@ -48,7 +48,7 @@ exports.articleSchema = zod_1.z.object({
|
|
|
48
48
|
slug: zod_1.z.string(),
|
|
49
49
|
title: zod_1.z.string().min(1).max(200),
|
|
50
50
|
// Markdown body (GFM).
|
|
51
|
-
body: zod_1.z.string().min(1).max(
|
|
51
|
+
body: zod_1.z.string().min(1).max(50000),
|
|
52
52
|
imageUrl: zod_1.z.string().optional().nullable(),
|
|
53
53
|
// Resized WebP variants populated by the `resizeArticleImage` cloud function.
|
|
54
54
|
// Consumers should prefer the smallest variant that still looks crisp and fall
|
|
@@ -82,7 +82,7 @@ exports.articleSchema = zod_1.z.object({
|
|
|
82
82
|
exports.createArticleSchema = zod_1.z.object({
|
|
83
83
|
id: zod_1.z.string().min(1).max(120).optional(),
|
|
84
84
|
title: zod_1.z.string().min(1).max(200),
|
|
85
|
-
body: zod_1.z.string().min(1).max(
|
|
85
|
+
body: zod_1.z.string().min(1).max(50000),
|
|
86
86
|
imageUrl: zod_1.z.string().optional().nullable(),
|
|
87
87
|
entities: zod_1.z.array(exports.articleEntitySchema).max(10).optional(),
|
|
88
88
|
user: user_1.reducedUserSchema,
|
|
@@ -92,7 +92,7 @@ exports.createArticleSchema = zod_1.z.object({
|
|
|
92
92
|
*/
|
|
93
93
|
exports.updateArticleSchema = zod_1.z.object({
|
|
94
94
|
title: zod_1.z.string().min(1).max(200).optional(),
|
|
95
|
-
body: zod_1.z.string().min(1).max(
|
|
95
|
+
body: zod_1.z.string().min(1).max(50000).optional(),
|
|
96
96
|
imageUrl: zod_1.z.string().optional().nullable(),
|
|
97
97
|
entities: zod_1.z.array(exports.articleEntitySchema).max(10).optional(),
|
|
98
98
|
});
|