@zeit/schemas
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -45,3 +45,3 @@ module.exports = { | ||
minLength: 1, | ||
maxLength: 32, | ||
maxLength: 128, | ||
pattern: "^[a-zA-Z0-9_!#$%&'*+.^`|~-]+$" | ||
@@ -48,0 +48,0 @@ }, |
@@ -46,3 +46,3 @@ const {EnvKeys, EnvObject} = require('./config-env'); | ||
patternProperties: { | ||
'^(sfo|bru|gru|iad)1$': { | ||
'.+': { | ||
type: 'object', | ||
@@ -49,0 +49,0 @@ required: ['max', 'min'], |
{ | ||
"name": "@zeit/schemas", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -264,1 +264,37 @@ /* eslint camelcase: 0 */ | ||
}; | ||
exports.test_scale_sfo1 = () => { | ||
const isValid = ajv.validate(deploymentConfigSchema, { | ||
scale: { | ||
sfo1: { | ||
min: 0, | ||
max: 1 | ||
} | ||
} | ||
}); | ||
assert.equal(isValid, true); | ||
}; | ||
exports.test_scale_all = () => { | ||
const isValid = ajv.validate(deploymentConfigSchema, { | ||
scale: { | ||
all: { | ||
min: 0, | ||
max: 'auto' | ||
} | ||
} | ||
}); | ||
assert.equal(isValid, true); | ||
}; | ||
exports.test_scale_invalid = () => { | ||
const isValid = ajv.validate(deploymentConfigSchema, { | ||
scale: { | ||
foo: { | ||
min: -1, | ||
max: 'auto' | ||
} | ||
} | ||
}); | ||
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
73168
759