@vida-global/core 1.1.10 → 1.1.11

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.
@@ -250,7 +250,9 @@ class VidaServerController {
250
250
 
251
251
 
252
252
  validateIsEnum(value, options) {
253
- if (!options.enums.includes(value)) return options.error;
253
+ if (!options.enums.includes(value)) {
254
+ return options.error || `must be one of [${options.enums.filter(Boolean).join(', ')}]`;
255
+ }
254
256
  }
255
257
 
256
258
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vida-global/core",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Core libraries for supporting Vida development",
5
5
  "author": "",
6
6
  "license": "ISC",