Esempio n. 1
0
        public override bool IsValid(JsonSchemaDefinitions definitions, JsonValue value, JsonSchemaCallback callback)
        {
            bool succeeded = true;

            foreach (JsonSchemaRule rule in rules)
                if (rule.IsValid(definitions, value, callback) == false)
                    succeeded = false;

            return succeeded;
        }
Esempio n. 2
0
 public void Add(JsonSchemaCallback scope)
 {
     if (scope.items != null && items != null)
         foreach (JsonSchemaMessage item in scope.items)
             items.Add(item);
 }
Esempio n. 3
0
 public abstract bool IsValid(JsonSchemaDefinitions definitions, JsonValue value, JsonSchemaCallback callback);