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

Method _validateV3Required

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

Source from the content-addressed store, hash-verified

758 }
759
760 _validateV3Required (schema, value, path) {
761 if (((typeof schema.required !== 'undefined' && schema.required === true) || (typeof schema.required === 'undefined' && this.jsoneditor.options.required_by_default === true)) && (schema.type !== 'info')) {
762 return [{
763 path,
764 property: 'required',
765 message: this.translate('error_notset', null, schema)
766 }]
767 }
768 return []
769 }
770
771 _validateByValueType (schema, value, path) {
772 const errors = []

Callers 1

_validateSchemaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected