polyxml 0.30.5__tar.gz → 0.30.6__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.30.5 → polyxml-0.30.6}/Cargo.lock +6 -6
- {polyxml-0.30.5 → polyxml-0.30.6}/Cargo.toml +1 -1
- {polyxml-0.30.5 → polyxml-0.30.6}/PKG-INFO +1 -1
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/schema_parser/mod.rs +10 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_schema_ir.rs +24 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/pyproject.toml +1 -1
- {polyxml-0.30.5 → polyxml-0.30.6}/README.md +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/Cargo.toml +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/README.md +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/benches/core_benchmarks.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/benches/support/tag_dispatch_fixtures.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/benches/tag_dispatch.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/cpp/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/csharp/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/go/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/java/codec.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/java/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/java/models.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/python/aot.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/python/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/rust/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/codegen/typescript/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/converters.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/error.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/ir/mod.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/ir/tarjan.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/json.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/lib.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/parser.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/schema.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/serializer.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/transcoder.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/src/value.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/fixtures/lexical_union.xsd +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/fixtures/mixed_content.xsd +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/fixtures/ts_mixed_content_inheritance.xsd +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_adversarial_identifiers.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_conformance.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_core.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_cpp_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_csharp_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_go_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_java_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_json.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_lexical_union_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_mixed_content.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_pattern_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_python_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_rust_codecs.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_rust_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_schema_audit.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_security.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_transcoder.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_ts_codegen.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_unbounded_choice.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-core/tests/test_xsi_type.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/Cargo.toml +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/README.md +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/benches/aot_vs_dataclass.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/src/lib.rs +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/tests/test_conformance.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/tests/test_generated_models.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/tests/test_json.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/tests/test_mixed_content.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/tests/test_polyxml.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/crates/polyxml-python/tests/test_xsi_type.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/python/polyxml/AGENT_GUIDE.md +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/python/polyxml/__init__.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/python/polyxml/compat/__init__.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/python/polyxml/compat/xsdata.py +0 -0
- {polyxml-0.30.5 → polyxml-0.30.6}/python/polyxml/py.typed +0 -0
|
@@ -608,7 +608,7 @@ dependencies = [
|
|
|
608
608
|
|
|
609
609
|
[[package]]
|
|
610
610
|
name = "polyxml"
|
|
611
|
-
version = "0.30.
|
|
611
|
+
version = "0.30.6"
|
|
612
612
|
dependencies = [
|
|
613
613
|
"criterion",
|
|
614
614
|
"heck",
|
|
@@ -629,14 +629,14 @@ dependencies = [
|
|
|
629
629
|
|
|
630
630
|
[[package]]
|
|
631
631
|
name = "polyxml-c"
|
|
632
|
-
version = "0.30.
|
|
632
|
+
version = "0.30.6"
|
|
633
633
|
dependencies = [
|
|
634
634
|
"polyxml",
|
|
635
635
|
]
|
|
636
636
|
|
|
637
637
|
[[package]]
|
|
638
638
|
name = "polyxml-cli"
|
|
639
|
-
version = "0.30.
|
|
639
|
+
version = "0.30.6"
|
|
640
640
|
dependencies = [
|
|
641
641
|
"clap",
|
|
642
642
|
"glob",
|
|
@@ -650,7 +650,7 @@ dependencies = [
|
|
|
650
650
|
|
|
651
651
|
[[package]]
|
|
652
652
|
name = "polyxml-js"
|
|
653
|
-
version = "0.30.
|
|
653
|
+
version = "0.30.6"
|
|
654
654
|
dependencies = [
|
|
655
655
|
"napi",
|
|
656
656
|
"napi-build",
|
|
@@ -660,7 +660,7 @@ dependencies = [
|
|
|
660
660
|
|
|
661
661
|
[[package]]
|
|
662
662
|
name = "polyxml-python"
|
|
663
|
-
version = "0.30.
|
|
663
|
+
version = "0.30.6"
|
|
664
664
|
dependencies = [
|
|
665
665
|
"lexical-core",
|
|
666
666
|
"polyxml",
|
|
@@ -670,7 +670,7 @@ dependencies = [
|
|
|
670
670
|
|
|
671
671
|
[[package]]
|
|
672
672
|
name = "polyxml-wasm"
|
|
673
|
-
version = "0.30.
|
|
673
|
+
version = "0.30.6"
|
|
674
674
|
dependencies = [
|
|
675
675
|
"polyxml",
|
|
676
676
|
"quick-xml",
|
|
@@ -255,6 +255,11 @@ impl XsdParser {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
merge_ir(&mut ir, sub_ir);
|
|
258
|
+
} else {
|
|
259
|
+
return Err(SchemaError::Resolution(format!(
|
|
260
|
+
"included schema not found: {}",
|
|
261
|
+
inc_path.display()
|
|
262
|
+
)));
|
|
258
263
|
}
|
|
259
264
|
}
|
|
260
265
|
}
|
|
@@ -366,6 +371,11 @@ impl XsdParser {
|
|
|
366
371
|
}
|
|
367
372
|
}
|
|
368
373
|
merge_ir(&mut ir, sub_ir);
|
|
374
|
+
} else {
|
|
375
|
+
return Err(SchemaError::Resolution(format!(
|
|
376
|
+
"included schema not found: {}",
|
|
377
|
+
inc_path.display()
|
|
378
|
+
)));
|
|
369
379
|
}
|
|
370
380
|
}
|
|
371
381
|
}
|
|
@@ -6,6 +6,30 @@ use polyxml::ir::{
|
|
|
6
6
|
TypeDef, TypeRef,
|
|
7
7
|
};
|
|
8
8
|
use polyxml::schema_parser::XsdParser;
|
|
9
|
+
use tempfile::tempdir;
|
|
10
|
+
|
|
11
|
+
#[test]
|
|
12
|
+
fn missing_included_schema_is_an_error() {
|
|
13
|
+
let dir = tempdir().unwrap();
|
|
14
|
+
for (name, include) in [
|
|
15
|
+
("empty.xsd", r#"<xs:include schemaLocation="missing.xsd"/>"#),
|
|
16
|
+
(
|
|
17
|
+
"start.xsd",
|
|
18
|
+
r#"<xs:include schemaLocation="missing.xsd"></xs:include>"#,
|
|
19
|
+
),
|
|
20
|
+
] {
|
|
21
|
+
let path = dir.path().join(name);
|
|
22
|
+
std::fs::write(
|
|
23
|
+
&path,
|
|
24
|
+
format!(
|
|
25
|
+
r#"<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">{include}</xs:schema>"#
|
|
26
|
+
),
|
|
27
|
+
)
|
|
28
|
+
.unwrap();
|
|
29
|
+
let error = XsdParser::new().parse_file(&path).unwrap_err();
|
|
30
|
+
assert!(error.to_string().contains("missing.xsd"), "{error}");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
9
33
|
|
|
10
34
|
#[test]
|
|
11
35
|
fn consumed_child_subtrees_do_not_swallow_following_types() {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyxml-0.30.5 → polyxml-0.30.6}/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
|
|
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
|