@zeit/schemas
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -1,2 +0,2 @@ | ||
const {EnvObject} = require('./env'); | ||
const {EnvKeys, EnvObject} = require('./env'); | ||
const staticSchema = require('./config-static'); | ||
@@ -18,3 +18,3 @@ | ||
}, | ||
'env': EnvObject, | ||
'env': { anyOf: [EnvObject, EnvKeys] }, | ||
'build': { | ||
@@ -21,0 +21,0 @@ type: 'object', |
{ | ||
"name": "@zeit/schemas", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -62,3 +62,3 @@ /* eslint camelcase: 0 */ | ||
exports.test_valid_env_types = () => { | ||
const isValid = ajv.validate(deploymentConfigSchema, { | ||
let isValid = ajv.validate(deploymentConfigSchema, { | ||
env: { | ||
@@ -69,2 +69,9 @@ VALID: '1' | ||
assert.equal(isValid, true); | ||
isValid = ajv.validate(deploymentConfigSchema, { | ||
env: [ | ||
'VALID' | ||
] | ||
}); | ||
assert.equal(isValid, true); | ||
}; | ||
@@ -71,0 +78,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69202
558