@zeit/schemas
Advanced tools
Comparing version 2.18.0 to 2.19.0
{ | ||
"name": "@zeit/schemas", | ||
"version": "2.18.0", | ||
"version": "2.19.0", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -244,1 +244,31 @@ /* eslint camelcase: 0 */ | ||
exports.test_scopeId_valid = () => { | ||
assert(ajv.validate(User, {scopeId: '123test'})); | ||
}; | ||
exports.test_scopeId_invalid = () => { | ||
const isValid = ajv.validate(User, { | ||
scopeId: null | ||
}); | ||
assert.strictEqual(isValid, false); | ||
}; | ||
exports.test_gitNamespaceId_string_valid = () => { | ||
assert(ajv.validate(User, {gitNamespaceId: 'test'})); | ||
}; | ||
exports.test_gitNamespaceId_number_valid = () => { | ||
assert(ajv.validate(User, {gitNamespaceId: 123})); | ||
}; | ||
exports.test_gitNamespaceId_null_valid = () => { | ||
assert(ajv.validate(User, {gitNamespaceId: null})); | ||
}; | ||
exports.test_gitNamespaceId_boolean_invalid = () => { | ||
const isValid = ajv.validate(User, { | ||
gitNamespaceId: true | ||
}); | ||
assert.strictEqual(isValid, false); | ||
}; | ||
@@ -56,2 +56,20 @@ const Username = { | ||
const ScopeId = { | ||
type: 'string' | ||
}; | ||
const GitNamespaceId = { | ||
oneOf: [ | ||
{ | ||
type: 'string' | ||
}, | ||
{ | ||
type: 'number' | ||
}, | ||
{ | ||
type: 'null' | ||
} | ||
] | ||
}; | ||
const PlatformVersion = { | ||
@@ -125,3 +143,5 @@ oneOf: [ | ||
importFlowGitNamespace: ImportFlowGitNamespace, | ||
importFlowGitNamespaceId: ImportFlowGitNamespaceId | ||
importFlowGitNamespaceId: ImportFlowGitNamespaceId, | ||
scopeId: ScopeId, | ||
gitNamespaceId: GitNamespaceId | ||
} | ||
@@ -139,3 +159,5 @@ }; | ||
ImportFlowGitNamespace, | ||
ImportFlowGitNamespaceId | ||
ImportFlowGitNamespaceId, | ||
ScopeId, | ||
GitNamespaceId | ||
}; |
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
28438
1074