@zeit/schemas
Advanced tools
Comparing version 2.33.0 to 2.34.0
{ | ||
"name": "@zeit/schemas", | ||
"version": "2.33.0", | ||
"version": "2.34.0", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -323,2 +323,28 @@ /* eslint camelcase: 0 */ | ||
exports.test_favoritesViewPreference_open_valid = () => { | ||
assert(ajv.validate(User, { favoritesViewPreference: 'open' })); | ||
}; | ||
exports.test_favoritesViewPreference_closed_valid = () => { | ||
assert(ajv.validate(User, { favoritesViewPreference: 'closed' })); | ||
}; | ||
exports.test_favoritesViewPreference_null_valid = () => { | ||
assert(ajv.validate(User, { favoritesViewPreference: null })); | ||
}; | ||
exports.test_favoritesViewPreference_invalid_value = () => { | ||
const isValid = ajv.validate(User, { | ||
favoritesViewPreference: 'test' | ||
}); | ||
assert.equal(isValid, false); | ||
}; | ||
exports.test_favoritesViewPreference_number_invalid = () => { | ||
const isValid = ajv.validate(User, { | ||
favoritesViewPreference: 10 | ||
}); | ||
assert.equal(isValid, false); | ||
}; | ||
exports.test_remoteCaching_valid = () => { | ||
@@ -325,0 +351,0 @@ assert(ajv.validate(User, { remoteCaching: { enabled: true } })); |
@@ -85,2 +85,13 @@ const Username = { | ||
const FavoritesViewPreference = { | ||
oneOf: [ | ||
{ | ||
'enum': ['open', 'closed'] | ||
}, | ||
{ | ||
type: 'null' | ||
} | ||
] | ||
}; | ||
const PlatformVersion = { | ||
@@ -261,2 +272,3 @@ oneOf: [ | ||
viewPreference: ViewPreference, | ||
favoritesViewPreference: FavoritesViewPreference, | ||
remoteCaching: RemoteCaching, | ||
@@ -283,3 +295,4 @@ dismissedToasts: DismissedToasts, | ||
ViewPreference, | ||
FavoritesViewPreference, | ||
DismissedToasts | ||
}; |
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
33299
1339