♻️ add openapi schema types

This commit is contained in:
Fred KISSIE
2026-03-05 17:51:55 +01:00
parent 1a5e9f1005
commit 8a3c0d9a08
4 changed files with 23 additions and 6 deletions

View File

@@ -26,7 +26,10 @@ const ruleSchema = z.strictObject({
description: "rule match"
}),
value: z.string().min(1),
priority: z.int(),
priority: z.int().openapi({
type: "integer",
description: "Rule priority"
}),
enabled: z.boolean().optional()
});