From b2f272b1e4985af79bbf89a7f326c245b03aa8cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Monteiro=20Morgado=20Dias?= Date: Mon, 26 Feb 2024 12:08:31 +0000 Subject: [PATCH] Change unit property in account stats json schema to accept values in enum --- json-schemas/src/account-stats.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-schemas/src/account-stats.json b/json-schemas/src/account-stats.json index 231ae09..154c1b1 100644 --- a/json-schemas/src/account-stats.json +++ b/json-schemas/src/account-stats.json @@ -14,7 +14,7 @@ "unit": { "type": "string", "description": "Unit of time for these statistics from the intervalId forwards.", - "pattern": "^minute$" + "enum": ["minute", "hour", "day", "month"] }, "schema": { "type": "string",