Comparing version 13.6.0 to 13.7.0
@@ -25,3 +25,4 @@ 'use strict'; | ||
object: require('./types/object'), | ||
string: require('./types/string') | ||
string: require('./types/string'), | ||
symbol: require('./types/symbol') | ||
}; | ||
@@ -116,2 +117,9 @@ | ||
root.symbol = function (...args) { | ||
Hoek.assert(args.length === 0, 'Joi.symbol() does not allow arguments.'); | ||
return internals.callWithDefaults.call(this, internals.symbol, args); | ||
}; | ||
root.ref = function (...args) { | ||
@@ -118,0 +126,0 @@ |
@@ -160,3 +160,7 @@ 'use strict'; | ||
ipVersion: 'must be a valid ip address of one of the following versions {{version}} with a {{cidr}} CIDR' | ||
}, | ||
symbol: { | ||
base: 'must be a symbol', | ||
map: 'must be one of {{map}}' | ||
} | ||
}; |
{ | ||
"name": "joi", | ||
"description": "Object schema validation", | ||
"version": "13.6.0", | ||
"version": "13.7.0", | ||
"homepage": "https://github.com/hapijs/joi", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hapijs/joi", |
@@ -19,3 +19,3 @@ ![joi Logo](https://raw.github.com/hapijs/joi/master/images/joi.png) | ||
# API | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v13.6.0/API.md). | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v13.7.0/API.md). | ||
@@ -22,0 +22,0 @@ # Example |
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
182434
27
4329