Esempio n. 1
0
 internal ValidationArgs(JsonValidator validator)
 {
     Validator = validator;
 }
Esempio n. 2
0
        /// <summary>
        /// Validates json. (It's more efficient to use SchemaValidator for multiple validations).
        /// </summary>
        /// <param name="json"></param>
        /// <param name=""></param>
        /// <returns></returns>
        public bool Validate(MPJson json, EventHandler <ValidationArgs> handler = null)
        {
            var schemaValidator = new JsonValidator();

            return(schemaValidator.Validate(this, json, handler));
        }