We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<xsd:schema xmlns="ST_targetNS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="ST_targetNS"> <xsd:simpleType name="Test"> <xsd:restriction base="xsd:string"> <xsd:pattern value="1|2" /> </xsd:restriction> </xsd:simpleType> </xsd:schema>
@dataclass class Test: """ :ivar value: """ value: Optional[str] = field( default=None, metadata=dict( pattern=r"1|2" ) )
Valid input
<test xmlns="ST_targetNS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ST_targetNS ST_targetNS00201m.xsd" xsi:type="Test">2</test>
xsdata serializer
<Test xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2</Test
The text was updated successfully, but these errors were encountered:
Resolve #267 Support derived root elements
f8108dc
Notes: Introduce new DerivedElement generic wrapper!
bfb8cde
fdb1e20
2b120da
12fc270
No branches or pull requests
Valid input
xsdata serializer
The text was updated successfully, but these errors were encountered: