♻️ 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

@@ -28,7 +28,14 @@ const getResourcePolicySchema = z
})
.or(
z.strictObject({
resourcePolicyId: z.coerce.number<string>().int().positive()
resourcePolicyId: z.coerce
.number<string>()
.int()
.positive()
.openapi({
type: "integer",
description: "Resource policy ID"
})
})
);