@contember/schema-utils
Advanced tools
Comparing version 0.12.0-beta.1 to 0.12.0-beta.2
@@ -45,2 +45,5 @@ "use strict"; | ||
} | ||
if (enumValues.length === 0) { | ||
errors.for(enumName).add('Enum must have at least one value'); | ||
} | ||
for (const value of enumValues) { | ||
@@ -47,0 +50,0 @@ const valueErrors = errors.for(value); |
{ | ||
"name": "@contember/schema-utils", | ||
"version": "0.12.0-beta.1", | ||
"version": "0.12.0-beta.2", | ||
"license": "Apache-2.0", | ||
@@ -11,3 +11,3 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@contember/schema": "^0.12.0-beta.1" | ||
"@contember/schema": "^0.12.0-beta.2" | ||
}, | ||
@@ -14,0 +14,0 @@ "devDependencies": { |
@@ -43,2 +43,5 @@ import { Model } from '@contember/schema' | ||
} | ||
if (enumValues.length === 0) { | ||
errors.for(enumName).add('Enum must have at least one value') | ||
} | ||
for (const value of enumValues) { | ||
@@ -45,0 +48,0 @@ const valueErrors = errors.for(value) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
245811
3791