updated restriction types

This commit is contained in:
ti
2024-12-20 15:37:26 +01:00
committed by Dion Moult
parent d1ad082979
commit 07817ec6fc
+2 -1
View File
@@ -998,7 +998,8 @@ class Restriction:
for constraint, value in self.options.items():
value = [value] if not isinstance(value, list) else value
for v in value:
if constraint in ["length", "minLength", "maxLength"]:
if constraint in ["length", "minLength", "maxLength", "maxExclusive", "maxInclusive",
"minExclusive", "minInclusive", "totalDigits", "fractionDigits"]:
value_dict = {"@value": v}
else:
value_dict = {"@value": str(v)}