Add field validation for some widgets

This commit is contained in:
Michael Shamoon committed 2022-11-18 15:24:07 -08:00
1 parent 21017e4716
commit 1695fd5bee
9 files changed
+41

No files matched your search

+9
View File
@@ -11,12 +11,21 @@ const widget = {
map: (data) => ({
total: asJson(data).length,
}),
validate: [
"total"
]
},
queue: {
endpoint: "queue",
validate: [
"totalRecords"
]
},
"wanted/missing": {
endpoint: "wanted/missing",
validate: [
"totalRecords"
]
},
},
};