[pve-devel] r5126 - pve-common/trunk
svn-commits at proxmox.com
svn-commits at proxmox.com
Mon Sep 13 13:46:56 CEST 2010
Author: dietmar
Date: 2010-09-13 11:46:56 +0000 (Mon, 13 Sep 2010)
New Revision: 5126
Modified:
pve-common/trunk/ChangeLog
pve-common/trunk/JSONSchema.pm
Log:
* JSONSchema.pm (validate): add minLength/maxLength to the default
schema.
Modified: pve-common/trunk/ChangeLog
===================================================================
--- pve-common/trunk/ChangeLog 2010-09-13 11:03:12 UTC (rev 5125)
+++ pve-common/trunk/ChangeLog 2010-09-13 11:46:56 UTC (rev 5126)
@@ -1,3 +1,8 @@
+2010-09-13 Proxmox Support Team <support at proxmox.com>
+
+ * JSONSchema.pm (validate): add minLength/maxLength to the default
+ schema.
+
2010-09-10 Proxmox Support Team <support at proxmox.com>
* INotify.pm (ccache_info): fix serious bug by duplicating cache info
Modified: pve-common/trunk/JSONSchema.pm
===================================================================
--- pve-common/trunk/JSONSchema.pm 2010-09-13 11:03:12 UTC (rev 5125)
+++ pve-common/trunk/JSONSchema.pm 2010-09-13 11:46:56 UTC (rev 5126)
@@ -495,6 +495,18 @@
optional => 1,
description => "This indicates the maximum value for the instance property when the type of the instance value is a number.",
},
+ minLength => {
+ type => "integer",
+ description => "When the instance value is a string, this indicates minimum length of the string",
+ optional => 1,
+ minimum => 0,
+ default => 0,
+ },
+ maxLength => {
+ type => "integer",
+ description => "When the instance value is a string, this indicates maximum length of the string.",
+ optional => 1,
+ },
typetext => {
type => "string",
optional => 1,
More information about the pve-devel
mailing list