xsdata-pydantic
xsdata-pydantic copied to clipboard
validators min max not working?
Hi,
I have this xsd fragment:
<xs:element name="activityid">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
It creates a model with the following field (meta data):
activityid: int = field(
metadata={
"type": "Element",
"namespace": "",
"required": True,
"min_inclusive": 0,
"max_inclusive": 100,
}
)
But the validators are not working.