@zeit/schemas
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -125,2 +125,11 @@ const {EnvKeys, EnvObject} = require('./config-env'); | ||
}, | ||
'github': { | ||
type: 'object', | ||
properties: { | ||
enabled: { | ||
type: 'boolean' | ||
} | ||
}, | ||
additionalProperties: false | ||
}, | ||
'slot': { | ||
@@ -127,0 +136,0 @@ type: 'string', |
{ | ||
"name": "@zeit/schemas", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -228,1 +228,19 @@ /* eslint camelcase: 0 */ | ||
}; | ||
exports.test_github_enabled = () => { | ||
const isValid = ajv.validate(deploymentConfigSchema, { | ||
github: { | ||
enabled: false | ||
} | ||
}); | ||
assert.equal(isValid, true); | ||
}; | ||
exports.test_github_additional_field = () => { | ||
const isValid = ajv.validate(deploymentConfigSchema, { | ||
github: { | ||
abc: 'bbc' | ||
} | ||
}); | ||
assert.equal(isValid, false); | ||
}; |
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
72177
704