polyxml 0.41.2__tar.gz → 0.42.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {polyxml-0.41.2 → polyxml-0.42.0}/Cargo.lock +8 -6
- {polyxml-0.41.2 → polyxml-0.42.0}/Cargo.toml +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/PKG-INFO +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_conformance.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_core.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_csharp_codegen.rs +11 -11
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_default_literal_codegen.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_enum_literal_codegen.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_go_codegen.rs +11 -11
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_inherited_simple_content.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_inherited_text_codegen.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_lexical_lists.rs +2 -2
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_qualified_attributes.rs +2 -2
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_schema_attribute_entities.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_temporal_union.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_upa.rs +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_value_constraints.rs +2 -2
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/tests/test_conformance.py +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/tests/test_generated_models.py +18 -18
- {polyxml-0.41.2 → polyxml-0.42.0}/pyproject.toml +1 -1
- {polyxml-0.41.2 → polyxml-0.42.0}/README.md +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/Cargo.toml +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/README.md +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/benches/core_benchmarks.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/benches/support/tag_dispatch_fixtures.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/benches/tag_dispatch.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/cpp/codec.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/cpp/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/csharp/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/go/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/java/codec.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/java/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/java/models.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/python/aot.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/python/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/rust/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/typescript/codec.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/codegen/typescript/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/converters.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/error.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/integer.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/ir/chunker.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/ir/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/ir/particle.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/ir/tarjan.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/json.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/lib.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/parser.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/pattern.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/schema.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/schema_parser/mod.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/schema_parser/upa.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/serializer.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/transcoder.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/src/value.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/fixtures/lexical_union.xsd +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/fixtures/mixed_content.xsd +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/fixtures/ts_mixed_content_inheritance.xsd +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_adversarial_identifiers.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_any_attribute.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_any_element.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_corpus_regressions.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_cpp_codegen.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_escaped_enum_and_nil_mixed.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_java_codegen.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_json.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_lexical_union_codegen.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_mixed_branch_lookup.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_mixed_content.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_mixed_nil.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_namespace_entities.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_pattern_codegen.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_python_codegen.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_runtime_fast_paths.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_rust_codecs.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_rust_codegen.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_schema_audit.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_schema_ir.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_schema_resolution.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_security.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_transcoder.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_ts_codegen.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_ubl_csharp.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_unbounded_choice.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_variant_registry.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_xsi_type.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/Cargo.toml +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/README.md +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/benches/aot_vs_dataclass.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/src/lib.rs +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/tests/test_binary_fields.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/tests/test_json.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/tests/test_mixed_content.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/tests/test_polyxml.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-python/tests/test_xsi_type.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/python/polyxml/AGENT_GUIDE.md +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/python/polyxml/__init__.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/python/polyxml/compat/__init__.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/python/polyxml/compat/xsdata.py +0 -0
- {polyxml-0.41.2 → polyxml-0.42.0}/python/polyxml/py.typed +0 -0
|
@@ -610,7 +610,7 @@ dependencies = [
|
|
|
610
610
|
|
|
611
611
|
[[package]]
|
|
612
612
|
name = "polyxml"
|
|
613
|
-
version = "0.
|
|
613
|
+
version = "0.42.0"
|
|
614
614
|
dependencies = [
|
|
615
615
|
"criterion",
|
|
616
616
|
"heck",
|
|
@@ -631,14 +631,14 @@ dependencies = [
|
|
|
631
631
|
|
|
632
632
|
[[package]]
|
|
633
633
|
name = "polyxml-c"
|
|
634
|
-
version = "0.
|
|
634
|
+
version = "0.42.0"
|
|
635
635
|
dependencies = [
|
|
636
636
|
"polyxml",
|
|
637
637
|
]
|
|
638
638
|
|
|
639
639
|
[[package]]
|
|
640
640
|
name = "polyxml-cli"
|
|
641
|
-
version = "0.
|
|
641
|
+
version = "0.42.0"
|
|
642
642
|
dependencies = [
|
|
643
643
|
"clap",
|
|
644
644
|
"glob",
|
|
@@ -652,7 +652,7 @@ dependencies = [
|
|
|
652
652
|
|
|
653
653
|
[[package]]
|
|
654
654
|
name = "polyxml-js"
|
|
655
|
-
version = "0.
|
|
655
|
+
version = "0.42.0"
|
|
656
656
|
dependencies = [
|
|
657
657
|
"napi",
|
|
658
658
|
"napi-build",
|
|
@@ -662,7 +662,7 @@ dependencies = [
|
|
|
662
662
|
|
|
663
663
|
[[package]]
|
|
664
664
|
name = "polyxml-python"
|
|
665
|
-
version = "0.
|
|
665
|
+
version = "0.42.0"
|
|
666
666
|
dependencies = [
|
|
667
667
|
"base64",
|
|
668
668
|
"hex",
|
|
@@ -674,10 +674,12 @@ dependencies = [
|
|
|
674
674
|
|
|
675
675
|
[[package]]
|
|
676
676
|
name = "polyxml-wasm"
|
|
677
|
-
version = "0.
|
|
677
|
+
version = "0.42.0"
|
|
678
678
|
dependencies = [
|
|
679
679
|
"polyxml",
|
|
680
680
|
"quick-xml",
|
|
681
|
+
"serde",
|
|
682
|
+
"serde_json",
|
|
681
683
|
"wasm-bindgen",
|
|
682
684
|
]
|
|
683
685
|
|
|
@@ -308,7 +308,7 @@ fn test_roundtrip_serialization_with_indentation() {
|
|
|
308
308
|
fn unbounded_integers_round_trip_and_compare_exact_bounds() {
|
|
309
309
|
let ir = polyxml::schema_parser::XsdParser::new()
|
|
310
310
|
.parse_str(include_str!(
|
|
311
|
-
"../../../tests/fixtures/
|
|
311
|
+
"../../../tests/fixtures/xsd/types/unbounded_integer.xsd"
|
|
312
312
|
))
|
|
313
313
|
.unwrap();
|
|
314
314
|
let schema = ModelSchema::from_ir(&ir, Some("Root")).unwrap();
|
|
@@ -83,11 +83,11 @@ fn particle_wire_structure_round_trips() {
|
|
|
83
83
|
(r#"<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:complexType name="VehicleType"><xs:simpleContent><xs:extension base="xs:string"/></xs:simpleContent></xs:complexType><xs:complexType name="OtherType"><xs:simpleContent><xs:extension base="xs:string"/></xs:simpleContent></xs:complexType><xs:element name="Root"><xs:complexType mixed="true"><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="Vehicle" type="VehicleType"/><xs:element name="VehicleType" type="OtherType"/></xs:choice></xs:complexType></xs:element></xs:schema>"#, "Root", vec!["<Root><Vehicle>one</Vehicle><VehicleType>two</VehicleType></Root>"]),
|
|
84
84
|
(r#"<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:simpleType name="Phase"><xs:restriction base="xs:string"><xs:enumeration value="on"/><xs:enumeration value="off"/></xs:restriction></xs:simpleType><xs:complexType name="Base" mixed="true"><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="ItemA" type="xs:string"/><xs:element name="item_a" type="xs:string"/></xs:choice><xs:attribute name="code" type="xs:string"/><xs:attribute name="enabled" type="xs:boolean" use="required"/><xs:attribute name="phase" type="Phase" use="required"/></xs:complexType><xs:complexType name="Derived" mixed="true"><xs:complexContent mixed="true"><xs:extension base="Base"><xs:attribute name="extra" type="xs:string"/></xs:extension></xs:complexContent></xs:complexType><xs:element name="Root" type="Derived"/></xs:schema>"#, "Root", vec![r#"<Root code="base" extra="leaf" enabled="true" phase="on">before<ItemA>A</ItemA>between<item_a>B</item_a>after</Root>"#]),
|
|
85
85
|
(r#"<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="Query"><xs:complexType><xs:sequence><xs:element name="Equals" type="xs:string"/><xs:element name="EqualsValue" type="xs:string"/><xs:element name="GetHashCode" type="xs:string"/><xs:element name="ToString" type="xs:string"/></xs:sequence></xs:complexType></xs:element></xs:schema>"#, "Query", vec!["<Query><Equals>a</Equals><EqualsValue>b</EqualsValue><GetHashCode>c</GetHashCode><ToString>d</ToString></Query>"]),
|
|
86
|
-
(include_str!("../../../tests/fixtures/
|
|
87
|
-
(include_str!("../../../tests/fixtures/
|
|
88
|
-
(include_str!("../../../tests/fixtures/
|
|
89
|
-
(include_str!("../../../tests/fixtures/
|
|
90
|
-
(include_str!("../../../tests/fixtures/
|
|
86
|
+
(include_str!("../../../tests/fixtures/xsd/compositors/nested_sequence_choice.xsd"), "Root", vec!["<Root><First>A</First><Second>B</Second></Root>", "<Root><Alternative>C</Alternative></Root>"]),
|
|
87
|
+
(include_str!("../../../tests/fixtures/xsd/compositors/repeated_sequence.xsd"), "Root", vec!["<Root><First>A1</First><Second>B1</Second><First>A2</First><Second>B2</Second></Root>"]),
|
|
88
|
+
(include_str!("../../../tests/fixtures/xsd/inheritance/substitution_group.xsd"), "Portfolio", vec!["<Portfolio xmlns='urn:audit:substitution'><Bond>A1</Bond><Equity>B1</Equity><Bond>A2</Bond></Portfolio>"]),
|
|
89
|
+
(include_str!("../../../tests/fixtures/xsd/compositors/choice_branch_cardinality.xsd"), "Root", vec!["<Root><Timing>A1</Timing><Timing>A2</Timing></Root>"]),
|
|
90
|
+
(include_str!("../../../tests/fixtures/xsd/compositors/duplicate_choice_branch_name.xsd"), "Person", vec!["<Person><MinAge>18</MinAge><MaxAge>25</MaxAge></Person>", "<Person><MaxAge>25</MaxAge></Person>"]),
|
|
91
91
|
] {
|
|
92
92
|
let ir = polyxml::schema_parser::XsdParser::new().parse_str(schema).unwrap();
|
|
93
93
|
for use_records in [true, false] {
|
|
@@ -119,7 +119,7 @@ foreach (var document in new [] {{ {documents} }}) {{
|
|
|
119
119
|
fn lexical_union_attributes_round_trip() {
|
|
120
120
|
let ir = polyxml::schema_parser::XsdParser::new()
|
|
121
121
|
.parse_str(include_str!(
|
|
122
|
-
"../../../tests/fixtures/
|
|
122
|
+
"../../../tests/fixtures/xsd/types/lexical_union_attribute.xsd"
|
|
123
123
|
))
|
|
124
124
|
.unwrap();
|
|
125
125
|
for use_records in [true, false] {
|
|
@@ -163,7 +163,7 @@ try { serializer.Deserialize(new StringReader("<Root count='invalid'/>")); throw
|
|
|
163
163
|
fn nillable_enum_collection_round_trips() {
|
|
164
164
|
let ir = polyxml::schema_parser::XsdParser::new()
|
|
165
165
|
.parse_str(include_str!(
|
|
166
|
-
"../../../tests/fixtures/
|
|
166
|
+
"../../../tests/fixtures/xsd/types/nillable_enum_collection.xsd"
|
|
167
167
|
))
|
|
168
168
|
.unwrap();
|
|
169
169
|
for use_records in [true, false] {
|
|
@@ -179,7 +179,7 @@ fn nillable_enum_collection_round_trips() {
|
|
|
179
179
|
fs::write(temp.path().join("Models.cs"), code).unwrap();
|
|
180
180
|
let strict_ir = polyxml::schema_parser::XsdParser::new()
|
|
181
181
|
.parse_str(
|
|
182
|
-
&include_str!("../../../tests/fixtures/
|
|
182
|
+
&include_str!("../../../tests/fixtures/xsd/types/nillable_enum_collection.xsd")
|
|
183
183
|
.replace("nillable=\"true\"", "nillable=\"false\""),
|
|
184
184
|
)
|
|
185
185
|
.unwrap();
|
|
@@ -1272,7 +1272,7 @@ fn test_csharp_sequence_nested_inside_choice_codegen() {
|
|
|
1272
1272
|
fn element_defaults_preserve_absence_and_empty_presence() {
|
|
1273
1273
|
let ir = polyxml::schema_parser::XsdParser::new()
|
|
1274
1274
|
.parse_str(include_str!(
|
|
1275
|
-
"../../../tests/fixtures/
|
|
1275
|
+
"../../../tests/fixtures/xsd/types/element_defaults.xsd"
|
|
1276
1276
|
))
|
|
1277
1277
|
.unwrap();
|
|
1278
1278
|
for use_records in [true, false] {
|
|
@@ -1318,7 +1318,7 @@ if(present&&!writer.ToString().Contains("<Flag>false</Flag>"))throw new Exceptio
|
|
|
1318
1318
|
fn fixed_values_are_enforced_on_read_and_write() {
|
|
1319
1319
|
let ir = polyxml::schema_parser::XsdParser::new()
|
|
1320
1320
|
.parse_str(include_str!(
|
|
1321
|
-
"../../../tests/fixtures/
|
|
1321
|
+
"../../../tests/fixtures/xsd/types/fixed_values.xsd"
|
|
1322
1322
|
))
|
|
1323
1323
|
.unwrap();
|
|
1324
1324
|
for use_records in [true, false] {
|
|
@@ -1364,7 +1364,7 @@ try{serializer.Deserialize(new StringReader(xml));throw new Exception("invalid i
|
|
|
1364
1364
|
fn unbounded_integer_xml_preserves_digits() {
|
|
1365
1365
|
let ir = polyxml::schema_parser::XsdParser::new()
|
|
1366
1366
|
.parse_str(include_str!(
|
|
1367
|
-
"../../../tests/fixtures/
|
|
1367
|
+
"../../../tests/fixtures/xsd/types/unbounded_integer.xsd"
|
|
1368
1368
|
))
|
|
1369
1369
|
.unwrap();
|
|
1370
1370
|
for records in [true, false] {
|
|
@@ -21,7 +21,7 @@ fn run(directory: &Path, program: &str, args: &[&str]) {
|
|
|
21
21
|
fn generated_string_defaults_and_fixed_values_preserve_xml_characters() {
|
|
22
22
|
let ir = XsdParser::new()
|
|
23
23
|
.parse_str(include_str!(
|
|
24
|
-
"../../../tests/fixtures/
|
|
24
|
+
"../../../tests/fixtures/xsd/types/default_literal_escaping.xsd"
|
|
25
25
|
))
|
|
26
26
|
.unwrap();
|
|
27
27
|
let expected = "\"quoted\"\\path\\u000a\t\n\r\u{85}\u{2028}café 😀";
|
|
@@ -25,7 +25,7 @@ fn run(directory: &Path, program: &str, args: &[&str]) {
|
|
|
25
25
|
fn enum_literals_compile_and_preserve_values_in_all_seven_languages() {
|
|
26
26
|
let ir = XsdParser::new()
|
|
27
27
|
.parse_str(include_str!(
|
|
28
|
-
"../../../tests/fixtures/
|
|
28
|
+
"../../../tests/fixtures/xsd/types/enum_literal_escaping.xsd"
|
|
29
29
|
))
|
|
30
30
|
.unwrap();
|
|
31
31
|
let TypeDef::Enum(status) = &ir.types[&QName::local("Status")] else {
|
|
@@ -15,10 +15,10 @@ use polyxml::schema_parser::XsdParser;
|
|
|
15
15
|
#[test]
|
|
16
16
|
fn ordered_particles_and_choice_branches_round_trip() {
|
|
17
17
|
for (schema, root, documents) in [
|
|
18
|
-
(include_str!("../../../tests/fixtures/
|
|
19
|
-
(include_str!("../../../tests/fixtures/
|
|
20
|
-
(include_str!("../../../tests/fixtures/
|
|
21
|
-
(include_str!("../../../tests/fixtures/
|
|
18
|
+
(include_str!("../../../tests/fixtures/xsd/compositors/repeated_sequence.xsd"), "Root", vec!["<Root><First>A1</First><Second>B1</Second><First>A2</First><Second>B2</Second></Root>", "<Root/>"]),
|
|
19
|
+
(include_str!("../../../tests/fixtures/xsd/inheritance/substitution_group.xsd"), "Portfolio", vec!["<Portfolio xmlns='urn:audit:substitution'><Bond>A1</Bond><Equity>B1</Equity><Bond>A2</Bond></Portfolio>"]),
|
|
20
|
+
(include_str!("../../../tests/fixtures/xsd/compositors/choice_branch_cardinality.xsd"), "Root", vec!["<Root><Timing>A1</Timing><Timing>A2</Timing></Root>", "<Root><Drive>B</Drive></Root>"]),
|
|
21
|
+
(include_str!("../../../tests/fixtures/xsd/compositors/duplicate_choice_branch_name.xsd"), "Person", vec!["<Person><MinAge>18</MinAge><MaxAge>25</MaxAge></Person>", "<Person><MaxAge>25</MaxAge></Person>", "<Person/>"]),
|
|
22
22
|
] {
|
|
23
23
|
let ir = XsdParser::new().parse_str(schema).unwrap();
|
|
24
24
|
let dir = tempdir().unwrap();
|
|
@@ -90,7 +90,7 @@ func TestTemporal(t *testing.T) {
|
|
|
90
90
|
fn roots_and_union_attributes_round_trip() {
|
|
91
91
|
let ir = XsdParser::new()
|
|
92
92
|
.parse_str(include_str!(
|
|
93
|
-
"../../../tests/fixtures/
|
|
93
|
+
"../../../tests/fixtures/xsd/types/lexical_union_attribute.xsd"
|
|
94
94
|
))
|
|
95
95
|
.unwrap();
|
|
96
96
|
let dir = tempdir().unwrap();
|
|
@@ -1201,7 +1201,7 @@ func TestNamespacedElementRef(t *testing.T) {
|
|
|
1201
1201
|
fn separate_choices_enforce_each_group() {
|
|
1202
1202
|
let ir = XsdParser::new()
|
|
1203
1203
|
.parse_str(include_str!(
|
|
1204
|
-
"../../../tests/fixtures/
|
|
1204
|
+
"../../../tests/fixtures/xsd/compositors/two_choice_groups.xsd"
|
|
1205
1205
|
))
|
|
1206
1206
|
.unwrap();
|
|
1207
1207
|
assert!(ir
|
|
@@ -1246,7 +1246,7 @@ var empty Parameters;if _,err:=xml.Marshal(empty);err==nil{t.Fatal("invalid outp
|
|
|
1246
1246
|
fn repeated_sequence_groups_enforce_bounds_and_order() {
|
|
1247
1247
|
let ir = XsdParser::new()
|
|
1248
1248
|
.parse_str(include_str!(
|
|
1249
|
-
"../../../tests/fixtures/
|
|
1249
|
+
"../../../tests/fixtures/xsd/compositors/repeated_sequence.xsd"
|
|
1250
1250
|
))
|
|
1251
1251
|
.unwrap();
|
|
1252
1252
|
let temp = tempdir().unwrap();
|
|
@@ -1285,7 +1285,7 @@ func TestSequence(t *testing.T){
|
|
|
1285
1285
|
fn repeated_choice_branch_rejects_mixed_and_empty_selections() {
|
|
1286
1286
|
let ir = XsdParser::new()
|
|
1287
1287
|
.parse_str(include_str!(
|
|
1288
|
-
"../../../tests/fixtures/
|
|
1288
|
+
"../../../tests/fixtures/xsd/compositors/choice_branch_cardinality.xsd"
|
|
1289
1289
|
))
|
|
1290
1290
|
.unwrap();
|
|
1291
1291
|
let structure = match ir.types.get(&QName::local("RootType")).unwrap() {
|
|
@@ -1336,7 +1336,7 @@ var root Root;if err:=xml.Unmarshal([]byte(`<Root><Timing>a</Timing></Root>`),&r
|
|
|
1336
1336
|
fn duplicate_choice_names_reject_invalid_branch_shapes() {
|
|
1337
1337
|
let ir = XsdParser::new()
|
|
1338
1338
|
.parse_str(include_str!(
|
|
1339
|
-
"../../../tests/fixtures/
|
|
1339
|
+
"../../../tests/fixtures/xsd/compositors/duplicate_choice_branch_name.xsd"
|
|
1340
1340
|
))
|
|
1341
1341
|
.unwrap();
|
|
1342
1342
|
let temp = tempdir().unwrap();
|
|
@@ -1371,7 +1371,7 @@ for _,body:=range []string{`<MaxAge>25</MaxAge><MaxAge>30</MaxAge>`,`<MinAge>18<
|
|
|
1371
1371
|
|
|
1372
1372
|
#[test]
|
|
1373
1373
|
fn abstract_substitution_heads_are_rejected() {
|
|
1374
|
-
let schema = include_str!("../../../tests/fixtures/
|
|
1374
|
+
let schema = include_str!("../../../tests/fixtures/xsd/inheritance/substitution_group.xsd");
|
|
1375
1375
|
let ir = XsdParser::new().parse_str(schema).unwrap();
|
|
1376
1376
|
assert!(ir
|
|
1377
1377
|
.abstract_elements
|
|
@@ -1415,7 +1415,7 @@ var root Portfolio;if err:=xml.Unmarshal([]byte(`<Portfolio xmlns="urn:audit:sub
|
|
|
1415
1415
|
fn unbounded_integer_xml_preserves_digits() {
|
|
1416
1416
|
let ir = XsdParser::new()
|
|
1417
1417
|
.parse_str(include_str!(
|
|
1418
|
-
"../../../tests/fixtures/
|
|
1418
|
+
"../../../tests/fixtures/xsd/types/unbounded_integer.xsd"
|
|
1419
1419
|
))
|
|
1420
1420
|
.unwrap();
|
|
1421
1421
|
let dir = tempdir().unwrap();
|
{polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_inherited_simple_content.rs
RENAMED
|
@@ -5,7 +5,7 @@ use polyxml::{deserialize, serialize, PolyValue};
|
|
|
5
5
|
use std::sync::Arc;
|
|
6
6
|
|
|
7
7
|
const FIXTURE: &str =
|
|
8
|
-
include_str!("../../../tests/fixtures/
|
|
8
|
+
include_str!("../../../tests/fixtures/xsd/inheritance/inherited_simple_content.xsd");
|
|
9
9
|
|
|
10
10
|
#[test]
|
|
11
11
|
fn inherited_text_resolves_terminal_type_without_losing_struct_bases_or_aliases() {
|
|
@@ -22,7 +22,7 @@ fn run(directory: &Path, program: &str, args: &[&str]) {
|
|
|
22
22
|
fn inherited_scalar_text_compiles_in_all_seven_languages() {
|
|
23
23
|
let ir = XsdParser::new()
|
|
24
24
|
.parse_str(include_str!(
|
|
25
|
-
"../../../tests/fixtures/
|
|
25
|
+
"../../../tests/fixtures/xsd/inheritance/inherited_simple_content.xsd"
|
|
26
26
|
))
|
|
27
27
|
.unwrap();
|
|
28
28
|
let root = tempfile::tempdir().unwrap();
|
|
@@ -11,7 +11,7 @@ use tempfile::tempdir;
|
|
|
11
11
|
fn typed_lexical_lists_round_trip_across_codecs() {
|
|
12
12
|
let ir = XsdParser::new()
|
|
13
13
|
.parse_str(include_str!(
|
|
14
|
-
"../../../tests/fixtures/
|
|
14
|
+
"../../../tests/fixtures/xsd/types/list_simple_types.xsd"
|
|
15
15
|
))
|
|
16
16
|
.unwrap();
|
|
17
17
|
let schema = ModelSchema::from_ir(&ir, Some("Root")).unwrap();
|
|
@@ -101,7 +101,7 @@ try{serializer.Deserialize(new StringReader("<Root><Numbers>one two</Numbers><Wo
|
|
|
101
101
|
fn named_list_items_enforce_facets_and_enumerations() {
|
|
102
102
|
let ir = XsdParser::new()
|
|
103
103
|
.parse_str(include_str!(
|
|
104
|
-
"../../../tests/fixtures/
|
|
104
|
+
"../../../tests/fixtures/xsd/types/restricted_list_items.xsd"
|
|
105
105
|
))
|
|
106
106
|
.unwrap();
|
|
107
107
|
let schema = ModelSchema::from_ir(&ir, Some("Root")).unwrap();
|
|
@@ -12,7 +12,7 @@ fn global_attribute_references_round_trip_by_namespace() {
|
|
|
12
12
|
let ir = parser
|
|
13
13
|
.parse_file(concat!(
|
|
14
14
|
env!("CARGO_MANIFEST_DIR"),
|
|
15
|
-
"/../../tests/fixtures/
|
|
15
|
+
"/../../tests/fixtures/xsd/attributes/xlink_shared_attribute/root.xsd"
|
|
16
16
|
))
|
|
17
17
|
.unwrap();
|
|
18
18
|
assert_attribute_round_trip(&ir);
|
|
@@ -24,7 +24,7 @@ fn imported_inline_global_attribute_enum_round_trips() {
|
|
|
24
24
|
fs::copy(
|
|
25
25
|
concat!(
|
|
26
26
|
env!("CARGO_MANIFEST_DIR"),
|
|
27
|
-
"/../../tests/fixtures/
|
|
27
|
+
"/../../tests/fixtures/xsd/attributes/xlink_shared_attribute/root.xsd"
|
|
28
28
|
),
|
|
29
29
|
fixture.path().join("root.xsd"),
|
|
30
30
|
)
|
{polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_schema_attribute_entities.rs
RENAMED
|
@@ -6,7 +6,7 @@ use polyxml::schema_parser::XsdParser;
|
|
|
6
6
|
use polyxml::{deserialize, serialize, PolyValue};
|
|
7
7
|
|
|
8
8
|
const FIXTURE: &str =
|
|
9
|
-
include_str!("../../../tests/fixtures/
|
|
9
|
+
include_str!("../../../tests/fixtures/xsd/attributes/schema_attribute_entities.xsd");
|
|
10
10
|
|
|
11
11
|
#[test]
|
|
12
12
|
fn attribute_entities_reach_enum_facets_and_defaults_in_value_space() {
|
|
@@ -4,7 +4,7 @@ use polyxml::schema_parser::XsdParser;
|
|
|
4
4
|
use std::{fs, process::Command};
|
|
5
5
|
use tempfile::tempdir;
|
|
6
6
|
|
|
7
|
-
const XSD: &str = include_str!("../../../tests/fixtures/
|
|
7
|
+
const XSD: &str = include_str!("../../../tests/fixtures/xsd/types/date_union.xsd");
|
|
8
8
|
|
|
9
9
|
fn run(command: &mut Command) {
|
|
10
10
|
let output = command.output().unwrap();
|
|
@@ -20,7 +20,7 @@ fn check(content: &str, valid: bool) {
|
|
|
20
20
|
|
|
21
21
|
#[test]
|
|
22
22
|
fn optional_siblings_and_choice_lookahead_violate_upa() {
|
|
23
|
-
let repro = include_str!("../../../tests/fixtures/
|
|
23
|
+
let repro = include_str!("../../../tests/fixtures/xsd/compositors/upa_violation.xsd");
|
|
24
24
|
assert!(XsdParser::new()
|
|
25
25
|
.parse_str(repro)
|
|
26
26
|
.unwrap_err()
|
|
@@ -7,7 +7,7 @@ use std::sync::Arc;
|
|
|
7
7
|
fn fixed_constraints_cover_input_and_output_in_value_space() {
|
|
8
8
|
let ir = XsdParser::new()
|
|
9
9
|
.parse_str(include_str!(
|
|
10
|
-
"../../../tests/fixtures/
|
|
10
|
+
"../../../tests/fixtures/xsd/types/fixed_values.xsd"
|
|
11
11
|
))
|
|
12
12
|
.unwrap();
|
|
13
13
|
let schema = ModelSchema::from_ir(&ir, Some("Root")).unwrap();
|
|
@@ -35,7 +35,7 @@ fn fixed_constraints_cover_input_and_output_in_value_space() {
|
|
|
35
35
|
fn repeated_particle_cardinality_belongs_to_the_group() {
|
|
36
36
|
let ir = XsdParser::new()
|
|
37
37
|
.parse_str(include_str!(
|
|
38
|
-
"../../../tests/fixtures/
|
|
38
|
+
"../../../tests/fixtures/xsd/compositors/repeated_sequence.xsd"
|
|
39
39
|
))
|
|
40
40
|
.unwrap();
|
|
41
41
|
let model = &ir.content_models[&polyxml::ir::QName::local("RootType")];
|
|
@@ -5,7 +5,7 @@ from pydantic import BaseModel, Field
|
|
|
5
5
|
|
|
6
6
|
import polyxml
|
|
7
7
|
|
|
8
|
-
FIXTURES_DIR = pathlib.Path(__file__).parents[3] / "tests" / "fixtures"
|
|
8
|
+
FIXTURES_DIR = pathlib.Path(__file__).parents[3] / "tests" / "fixtures" / "samples"
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
# -------------------------------------------------------------
|
|
@@ -17,7 +17,7 @@ import polyxml
|
|
|
17
17
|
def test_generated_abstract_root_preserves_derived_payload(tmp_path, backend):
|
|
18
18
|
schema = (
|
|
19
19
|
pathlib.Path(__file__).resolve().parents[3]
|
|
20
|
-
/ "tests/fixtures/
|
|
20
|
+
/ "tests/fixtures/xsd/inheritance/abstract_derived_xsi.xsd"
|
|
21
21
|
)
|
|
22
22
|
subprocess.run(
|
|
23
23
|
[
|
|
@@ -79,7 +79,7 @@ def test_roots_with_the_same_local_name_in_distinct_namespaces(tmp_path):
|
|
|
79
79
|
("fixture", "root_name", "documents"),
|
|
80
80
|
[
|
|
81
81
|
(
|
|
82
|
-
"nested_sequence_choice.xsd",
|
|
82
|
+
"compositors/nested_sequence_choice.xsd",
|
|
83
83
|
"Root",
|
|
84
84
|
[
|
|
85
85
|
"<Root><First>A</First><Second>B</Second></Root>",
|
|
@@ -87,7 +87,7 @@ def test_roots_with_the_same_local_name_in_distinct_namespaces(tmp_path):
|
|
|
87
87
|
],
|
|
88
88
|
),
|
|
89
89
|
(
|
|
90
|
-
"repeated_sequence.xsd",
|
|
90
|
+
"compositors/repeated_sequence.xsd",
|
|
91
91
|
"Root",
|
|
92
92
|
[
|
|
93
93
|
"<Root><First>A1</First><Second>B1</Second><First>A2</First><Second>B2</Second></Root>",
|
|
@@ -95,14 +95,14 @@ def test_roots_with_the_same_local_name_in_distinct_namespaces(tmp_path):
|
|
|
95
95
|
],
|
|
96
96
|
),
|
|
97
97
|
(
|
|
98
|
-
"substitution_group.xsd",
|
|
98
|
+
"inheritance/substitution_group.xsd",
|
|
99
99
|
"Portfolio",
|
|
100
100
|
[
|
|
101
101
|
"<Portfolio xmlns='urn:audit:substitution'><Bond>A1</Bond><Equity>B1</Equity><Bond>A2</Bond></Portfolio>"
|
|
102
102
|
],
|
|
103
103
|
),
|
|
104
104
|
(
|
|
105
|
-
"choice_branch_cardinality.xsd",
|
|
105
|
+
"compositors/choice_branch_cardinality.xsd",
|
|
106
106
|
"Root",
|
|
107
107
|
[
|
|
108
108
|
"<Root><Timing>A1</Timing><Timing>A2</Timing></Root>",
|
|
@@ -110,7 +110,7 @@ def test_roots_with_the_same_local_name_in_distinct_namespaces(tmp_path):
|
|
|
110
110
|
],
|
|
111
111
|
),
|
|
112
112
|
(
|
|
113
|
-
"
|
|
113
|
+
"compositors/duplicate_choice_branch_name.xsd",
|
|
114
114
|
"Person",
|
|
115
115
|
[
|
|
116
116
|
"<Person><MinAge>18</MinAge><MaxAge>25</MaxAge></Person>",
|
|
@@ -125,7 +125,7 @@ def test_particle_codec_regressions(tmp_path, backend, fixture, root_name, docum
|
|
|
125
125
|
pathlib.Path(__file__).resolve().parents[3]
|
|
126
126
|
/ "tests"
|
|
127
127
|
/ "fixtures"
|
|
128
|
-
/ "
|
|
128
|
+
/ "xsd"
|
|
129
129
|
/ fixture
|
|
130
130
|
)
|
|
131
131
|
subprocess.run(
|
|
@@ -591,7 +591,7 @@ def test_codecs_flag_disabled():
|
|
|
591
591
|
|
|
592
592
|
@pytest.mark.parametrize("backend", ["dataclass", "pydantic"])
|
|
593
593
|
def test_generated_models_reject_general_entities(tmp_path, backend):
|
|
594
|
-
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/
|
|
594
|
+
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/xsd/security/xxe_text.xsd"
|
|
595
595
|
subprocess.run(
|
|
596
596
|
[
|
|
597
597
|
str(_get_polyxml_bin()),
|
|
@@ -625,7 +625,7 @@ def test_generated_models_reject_general_entities(tmp_path, backend):
|
|
|
625
625
|
|
|
626
626
|
@pytest.mark.parametrize("backend", ["dataclass", "pydantic"])
|
|
627
627
|
def test_element_defaults_preserve_absence(tmp_path, backend):
|
|
628
|
-
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/
|
|
628
|
+
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/xsd/types/element_defaults.xsd"
|
|
629
629
|
subprocess.run(
|
|
630
630
|
[
|
|
631
631
|
str(_get_polyxml_bin()),
|
|
@@ -658,7 +658,7 @@ def test_element_defaults_preserve_absence(tmp_path, backend):
|
|
|
658
658
|
|
|
659
659
|
@pytest.mark.parametrize("backend", ["dataclass", "pydantic"])
|
|
660
660
|
def test_fixed_values_validate_input_and_output(tmp_path, backend):
|
|
661
|
-
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/
|
|
661
|
+
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/xsd/types/fixed_values.xsd"
|
|
662
662
|
subprocess.run(
|
|
663
663
|
[
|
|
664
664
|
str(_get_polyxml_bin()),
|
|
@@ -696,7 +696,7 @@ def test_fixed_values_validate_input_and_output(tmp_path, backend):
|
|
|
696
696
|
def test_separate_choice_groups_enforce_constraints(tmp_path, backend):
|
|
697
697
|
schema = (
|
|
698
698
|
pathlib.Path(__file__).resolve().parents[3]
|
|
699
|
-
/ "tests/fixtures/
|
|
699
|
+
/ "tests/fixtures/xsd/compositors/two_choice_groups.xsd"
|
|
700
700
|
)
|
|
701
701
|
subprocess.run(
|
|
702
702
|
[
|
|
@@ -736,7 +736,7 @@ def test_separate_choice_groups_enforce_constraints(tmp_path, backend):
|
|
|
736
736
|
|
|
737
737
|
@pytest.mark.parametrize("backend", ["dataclass", "pydantic"])
|
|
738
738
|
def test_repeated_sequence_constraints(tmp_path, backend):
|
|
739
|
-
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/
|
|
739
|
+
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/xsd/compositors/repeated_sequence.xsd"
|
|
740
740
|
subprocess.run(
|
|
741
741
|
[
|
|
742
742
|
str(_get_polyxml_bin()),
|
|
@@ -773,7 +773,7 @@ def test_repeated_sequence_constraints(tmp_path, backend):
|
|
|
773
773
|
|
|
774
774
|
@pytest.mark.parametrize("backend", ["dataclass", "pydantic"])
|
|
775
775
|
def test_typed_lexical_lists(tmp_path, backend):
|
|
776
|
-
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/
|
|
776
|
+
schema = pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/xsd/types/list_simple_types.xsd"
|
|
777
777
|
subprocess.run(
|
|
778
778
|
[
|
|
779
779
|
str(_get_polyxml_bin()),
|
|
@@ -807,7 +807,7 @@ def test_typed_lexical_lists(tmp_path, backend):
|
|
|
807
807
|
@pytest.mark.parametrize("backend", ["dataclass", "pydantic"])
|
|
808
808
|
def test_named_lexical_list_item_constraints(tmp_path, backend):
|
|
809
809
|
schema = (
|
|
810
|
-
pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/
|
|
810
|
+
pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/xsd/types/restricted_list_items.xsd"
|
|
811
811
|
)
|
|
812
812
|
subprocess.run(
|
|
813
813
|
[
|
|
@@ -845,7 +845,7 @@ def test_named_lexical_list_item_constraints(tmp_path, backend):
|
|
|
845
845
|
def test_repeated_choice_branch_boundaries(tmp_path, backend):
|
|
846
846
|
schema = (
|
|
847
847
|
pathlib.Path(__file__).resolve().parents[3]
|
|
848
|
-
/ "tests/fixtures/
|
|
848
|
+
/ "tests/fixtures/xsd/compositors/choice_branch_cardinality.xsd"
|
|
849
849
|
)
|
|
850
850
|
subprocess.run(
|
|
851
851
|
[
|
|
@@ -891,7 +891,7 @@ def test_repeated_choice_branch_boundaries(tmp_path, backend):
|
|
|
891
891
|
def test_duplicate_choice_names_validate_branch_shapes(tmp_path, backend):
|
|
892
892
|
schema = (
|
|
893
893
|
pathlib.Path(__file__).resolve().parents[3]
|
|
894
|
-
/ "tests/fixtures/
|
|
894
|
+
/ "tests/fixtures/xsd/compositors/duplicate_choice_branch_name.xsd"
|
|
895
895
|
)
|
|
896
896
|
subprocess.run(
|
|
897
897
|
[
|
|
@@ -926,7 +926,7 @@ def test_duplicate_choice_names_validate_branch_shapes(tmp_path, backend):
|
|
|
926
926
|
@pytest.mark.parametrize("backend", ["dataclass", "pydantic"])
|
|
927
927
|
def test_abstract_substitution_head_is_rejected(tmp_path, backend):
|
|
928
928
|
schema = (
|
|
929
|
-
pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/
|
|
929
|
+
pathlib.Path(__file__).resolve().parents[3] / "tests/fixtures/xsd/inheritance/substitution_group.xsd"
|
|
930
930
|
)
|
|
931
931
|
subprocess.run(
|
|
932
932
|
[
|
|
@@ -964,7 +964,7 @@ def test_abstract_substitution_head_is_rejected(tmp_path, backend):
|
|
|
964
964
|
def test_unbounded_integer_round_trip(tmp_path, backend):
|
|
965
965
|
schema = (
|
|
966
966
|
pathlib.Path(__file__).resolve().parents[3]
|
|
967
|
-
/ "tests/fixtures/
|
|
967
|
+
/ "tests/fixtures/xsd/types/unbounded_integer.xsd"
|
|
968
968
|
)
|
|
969
969
|
subprocess.run(
|
|
970
970
|
[
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/benches/support/tag_dispatch_fixtures.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyxml-0.41.2 → polyxml-0.42.0}/crates/polyxml-core/tests/test_escaped_enum_and_nil_mixed.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|