MCPcopy Create free account
hub / github.com/json-editor/json-editor / not

Method not

src/validator.js:210–219  ·  view source on GitHub ↗
(schema, value, path)

Source from the content-addressed store, hash-verified

208 return errors
209 },
210 not (schema, value, path) {
211 if (!this._validateSchema(schema.not, value, path).length) {
212 return [{
213 path,
214 property: 'not',
215 message: this.translate('error_not', null, schema)
216 }]
217 }
218 return []
219 },
220 type (schema, value, path) {
221 /* Union type */
222 if (Array.isArray(schema.type)) {

Callers

nothing calls this directly

Calls 1

_validateSchemaMethod · 0.95

Tested by

no test coverage detected