MCPcopy Create free account
hub / github.com/cryptii/cryptii / validateValue

Method validateValue

src/Field.js:269–275  ·  view source on GitHub ↗

* Validates given raw value. Override is required to call super. * @override * @param {mixed} rawValue Value to be validated * @return {boolean|object} True if valid, message object or false if invalid

(rawValue)

Source from the content-addressed store, hash-verified

267 * @return {boolean|object} True if valid, message object or false if invalid
268 */
269 validateValue (rawValue) {
270 if (this._validateValueCallback !== null) {
271 return this._validateValueCallback(rawValue, this)
272 }
273 // Generic field objects accept any value
274 return true
275 }
276
277 /**
278 * Filters given raw value. Called whenever a value gets set

Callers 1

setValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected