summaryrefslogtreecommitdiff
path: root/interface-definitions/include/generic-description.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-10 17:56:08 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-10 17:00:22 +0000
commit9ec374140aa206b97161c735e9f0512148480866 (patch)
tree1088c329511e5caa61c8c08d9ea9af447398c223 /interface-definitions/include/generic-description.xml.i
parentc29023becfe26e19284d9520820f5c00eefd6527 (diff)
downloadvyos-1x-9ec374140aa206b97161c735e9f0512148480866.tar.gz
vyos-1x-9ec374140aa206b97161c735e9f0512148480866.zip
xml: T5738: revert invalid change from lower character limit - 0 length must be allowed
This reverts a change from commit a72ededa0 ("xml: T5738: lower maximum description to 255 characters") which incresaed the lower limit from 0 to 1. We actually require 0 length value for description nodes as introduced in commit 6eea12512e ("xml: T1579: allow zero length for description"). (cherry picked from commit 724c685cba423758bece827d6d286815933ba912)
Diffstat (limited to 'interface-definitions/include/generic-description.xml.i')
-rw-r--r--interface-definitions/include/generic-description.xml.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/include/generic-description.xml.i b/interface-definitions/include/generic-description.xml.i
index ffe037a01..0b3701534 100644
--- a/interface-definitions/include/generic-description.xml.i
+++ b/interface-definitions/include/generic-description.xml.i
@@ -7,7 +7,7 @@
<description>Description</description>
</valueHelp>
<constraint>
- <regex>[[:ascii:]]{1,255}</regex>
+ <regex>[[:ascii:]]{0,255}</regex>
</constraint>
<constraintErrorMessage>Description too long (limit 255 characters)</constraintErrorMessage>
</properties>