lib/jsonscript.js
function generateSchemas() {
  // this.ajv.addMetaSchema(_generate.call(this, 'evaluate_metaschema'));
  this._validate = this.ajv.compile(_generate.call(this, 'schema'));
  this._expandMacros = this.ajv.compile(_generate.call(this, 'expand_macros'));
  this._evaluate = this.ajv.compile(_generate.call(this, 'evaluate'));
  // console.log(this._validate.toString().length, this._evaluate.toString().length);
}
function generateSchemas() {
  // this.ajv.addMetaSchema(_generate.call(this, 'evaluate_metaschema'));
  this._validate = this.ajv.compile(_generate.call(this, 'schema'));
  this._expandMacros = this.ajv.compile(_generate.call(this, 'expand_macros'));
  this._evaluate = this.ajv.compile(_generate.call(this, 'evaluate'));
  // console.log(this._validate.toString().length, this._evaluate.toString().length);
}
function generateSchemas ( ) { // this.ajv.addMetaSchema(_generate.call(this, 'evaluate_metaschema')); this . _validate = this . ajv . compile ( _generate . call ( this , 'schema' ) ) ; this . _expandMacros = this . ajv . compile ( _generate . call ( this , 'expand_macros' ) ) ; this . _evaluate = this . ajv . compile ( _generate . call ( this , 'evaluate' ) ) ; // console.log(this._validate.toString().length, this._evaluate.toString().length); }
private function to regenerate validation and evaluation schemas, called when an instruction is added
@this JSONScript
private function to regenerate validation and evaluation schemas called when an instruction is added