createValidationFunction(objectName) {
		if (this.inputFormat === '.json') {
			var schema = this.schemas.json[objectName];
			return function (input, hash) {
				var inputObject;
				try {
					inputObject = JSON.parse(input);
				}
				catch (err) {
					return err;
				}

				var validation = validate(inputObject, schema);

				if (validation.errors.length === 0) {
					return true
				} else {
					return validation.errors[0].property + ' ' + validation.errors[0].message
				}
			};
		} else if (this.inputFormat === '.expertdsl') {
			//todo implement
			return null;
		} else {
			//todo error
		}
	}
/**
	 * Creates a function for validating the 
	 * @param {string} objectName - The name of the object the validator should be created for
	 */
Creates a function for validating the
@param {string} objectName - The name of the object the validator should be created for
Creates a function for validating the @param { string } objectName - The name of the object the validator should be created for
createValidationFunction(objectName) {
		if (this.inputFormat === '.json') {
			var schema = this.schemas.json[objectName];
			return function (input, hash) {
				var inputObject;
				try {
					inputObject = JSON.parse(input);
				}
				catch (err) {
					return err;
				}
				var validation = validate(inputObject, schema);
				if (validation.errors.length === 0) {
					return true
				} else {
					return validation.errors[0].property + ' ' + validation.errors[0].message
				}
			};
		} else if (this.inputFormat === '.expertdsl') {
			return null;
		} else {
		}
	}
createValidationFunction ( objectName ) { if ( this . inputFormat === '.json' ) { var schema = this . schemas . json [ objectName ] ; return function ( input , hash ) { var inputObject ; try { inputObject = JSON . parse ( input ) ; } catch ( err ) { return err ; } var validation = validate ( inputObject , schema ) ; if ( validation . errors . length === 0 ) { return true } else { return validation . errors [ 0 ] . property + ' ' + validation . errors [ 0 ] . message } } ; } else if ( this . inputFormat === '.expertdsl' ) { return null ; } else { } }
Creates a function for validating the
 @param {string} objectName - The name of the object the validator should be created for
Creates a function for validating the @param { string } objectName - The name of the object the validator should be created for
//todo implement //todo error