Fixed wrong default value for xsd:positiveInteger and xsd:negativeInteger in xmlclass
--- a/xmlclass/xsdschema.py Mon Apr 29 10:24:19 2013 +0200
+++ b/xmlclass/xsdschema.py Mon Apr 29 10:35:15 2013 +0200
@@ -2142,7 +2142,7 @@
"extract": GenerateIntegerExtraction(minExclusive=0),
"facets": DECIMAL_FACETS,
"generate": GenerateSimpleTypeXMLText(str),
- "initial": lambda: 0,
+ "initial": lambda: 1,
"check": lambda x: isinstance(x, IntType)
},
@@ -2152,7 +2152,7 @@
"extract": GenerateIntegerExtraction(maxExclusive=0),
"facets": DECIMAL_FACETS,
"generate": GenerateSimpleTypeXMLText(str),
- "initial": lambda: 0,
+ "initial": lambda: -1,
"check": lambda x: isinstance(x, IntType)
},