@zeit/schemas
Advanced tools
Comparing version 2.17.0 to 2.18.0
{ | ||
"name": "@zeit/schemas", | ||
"version": "2.17.0", | ||
"version": "2.18.0", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -224,1 +224,21 @@ /* eslint camelcase: 0 */ | ||
}; | ||
exports.test_importFlowGitNamespaceId_string_valid = () => { | ||
assert(ajv.validate(User, {importFlowGitNamespaceId: 'test'})); | ||
}; | ||
exports.test_importFlowGitNamespaceId_number_valid = () => { | ||
assert(ajv.validate(User, {importFlowGitNamespaceId: 10})); | ||
}; | ||
exports.test_importFlowGitNamespaceId_null_valid = () => { | ||
assert(ajv.validate(User, {importFlowGitNamespaceId: null})); | ||
}; | ||
exports.test_importFlowGitNamespaceId_boolean_invalid = () => { | ||
const isValid = ajv.validate(User, { | ||
importFlowGitNamespaceId: true | ||
}); | ||
assert.strictEqual(isValid, false); | ||
}; | ||
@@ -42,2 +42,16 @@ const Username = { | ||
const ImportFlowGitNamespaceId = { | ||
oneOf: [ | ||
{ | ||
type: 'string' | ||
}, | ||
{ | ||
type: 'number' | ||
}, | ||
{ | ||
type: 'null' | ||
} | ||
] | ||
}; | ||
const PlatformVersion = { | ||
@@ -110,3 +124,4 @@ oneOf: [ | ||
importFlowGitProvider: ImportFlowGitProvider, | ||
importFlowGitNamespace: ImportFlowGitNamespace | ||
importFlowGitNamespace: ImportFlowGitNamespace, | ||
importFlowGitNamespaceId: ImportFlowGitNamespaceId | ||
} | ||
@@ -123,3 +138,4 @@ }; | ||
ImportFlowGitProvider, | ||
ImportFlowGitNamespace | ||
ImportFlowGitNamespace, | ||
ImportFlowGitNamespaceId | ||
}; |
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
27484
1030