[pve-devel] r5133 - pve-common/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Sep 14 10:29:34 CEST 2010


Author: dietmar
Date: 2010-09-14 08:29:34 +0000 (Tue, 14 Sep 2010)
New Revision: 5133

Modified:
   pve-common/trunk/JSONSchema.pm
   pve-common/trunk/RESTHandler.pm
Log:
bug fix


Modified: pve-common/trunk/JSONSchema.pm
===================================================================
--- pve-common/trunk/JSONSchema.pm	2010-09-14 08:01:06 UTC (rev 5132)
+++ pve-common/trunk/JSONSchema.pm	2010-09-14 08:29:34 UTC (rev 5133)
@@ -686,6 +686,8 @@
 		properties => {
                     subclass => {},
                     path => {},
+                    match_name => {},
+                    match_re => {},
                     fragmentDelimiter => { optional => 1 }
                 }             
             },

Modified: pve-common/trunk/RESTHandler.pm
===================================================================
--- pve-common/trunk/RESTHandler.pm	2010-09-14 08:01:06 UTC (rev 5132)
+++ pve-common/trunk/RESTHandler.pm	2010-09-14 08:29:34 UTC (rev 5133)
@@ -23,11 +23,7 @@
 	my $ma = $method_registry->{$class};
 
 	foreach my $info (@$ma) {
-	    if ($info->{subclass}) {
-		validate_method_schemas($info->{subclass});
-	    } else {
-		PVE::JSONSchema::validate_method_info($info);
-	    }
+	    PVE::JSONSchema::validate_method_info($info);
 	}
     }
 }




More information about the pve-devel mailing list