polyxml 0.19.0__tar.gz → 0.19.1__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.19.0 → polyxml-0.19.1}/Cargo.lock +5 -5
- {polyxml-0.19.0 → polyxml-0.19.1}/Cargo.toml +1 -1
- {polyxml-0.19.0 → polyxml-0.19.1}/PKG-INFO +1 -1
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/csharp/mod.rs +3 -3
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/python/mod.rs +13 -2
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_csharp_codegen.rs +1 -1
- {polyxml-0.19.0 → polyxml-0.19.1}/pyproject.toml +1 -1
- {polyxml-0.19.0 → polyxml-0.19.1}/README.md +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/Cargo.toml +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/README.md +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/benches/core_benchmarks.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/cpp/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/go/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/java/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/rust/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/codegen/typescript/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/converters.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/error.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/ir/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/ir/tarjan.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/json.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/lib.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/parser.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/schema.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/schema_parser/mod.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/serializer.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/transcoder.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/src/value.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_conformance.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_core.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_cpp_codegen.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_go_codegen.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_java_codegen.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_json.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_python_codegen.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_rust_codecs.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_rust_codegen.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_schema_ir.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_security.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_transcoder.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-core/tests/test_ts_codegen.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-python/Cargo.toml +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-python/README.md +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-python/src/lib.rs +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-python/tests/test_conformance.py +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-python/tests/test_generated_models.py +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-python/tests/test_json.py +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/crates/polyxml-python/tests/test_polyxml.py +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/python/polyxml/AGENT_GUIDE.md +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/python/polyxml/__init__.py +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/python/polyxml/compat/__init__.py +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/python/polyxml/compat/xsdata.py +0 -0
- {polyxml-0.19.0 → polyxml-0.19.1}/python/polyxml/py.typed +0 -0
|
@@ -549,7 +549,7 @@ dependencies = [
|
|
|
549
549
|
|
|
550
550
|
[[package]]
|
|
551
551
|
name = "polyxml"
|
|
552
|
-
version = "0.19.
|
|
552
|
+
version = "0.19.1"
|
|
553
553
|
dependencies = [
|
|
554
554
|
"criterion",
|
|
555
555
|
"heck",
|
|
@@ -567,14 +567,14 @@ dependencies = [
|
|
|
567
567
|
|
|
568
568
|
[[package]]
|
|
569
569
|
name = "polyxml-c"
|
|
570
|
-
version = "0.19.
|
|
570
|
+
version = "0.19.1"
|
|
571
571
|
dependencies = [
|
|
572
572
|
"polyxml",
|
|
573
573
|
]
|
|
574
574
|
|
|
575
575
|
[[package]]
|
|
576
576
|
name = "polyxml-cli"
|
|
577
|
-
version = "0.19.
|
|
577
|
+
version = "0.19.1"
|
|
578
578
|
dependencies = [
|
|
579
579
|
"clap",
|
|
580
580
|
"glob",
|
|
@@ -588,7 +588,7 @@ dependencies = [
|
|
|
588
588
|
|
|
589
589
|
[[package]]
|
|
590
590
|
name = "polyxml-js"
|
|
591
|
-
version = "0.19.
|
|
591
|
+
version = "0.19.1"
|
|
592
592
|
dependencies = [
|
|
593
593
|
"napi",
|
|
594
594
|
"napi-build",
|
|
@@ -598,7 +598,7 @@ dependencies = [
|
|
|
598
598
|
|
|
599
599
|
[[package]]
|
|
600
600
|
name = "polyxml-python"
|
|
601
|
-
version = "0.19.
|
|
601
|
+
version = "0.19.1"
|
|
602
602
|
dependencies = [
|
|
603
603
|
"lexical-core",
|
|
604
604
|
"polyxml",
|
|
@@ -391,8 +391,8 @@ impl CSharpCodegen {
|
|
|
391
391
|
if self.options.emit_json_attributes {
|
|
392
392
|
writeln!(
|
|
393
393
|
out,
|
|
394
|
-
"{}[JsonConverter(typeof(JsonStringEnumConverter))]",
|
|
395
|
-
indent
|
|
394
|
+
"{}[JsonConverter(typeof(JsonStringEnumConverter<{}>))]",
|
|
395
|
+
indent, enum_name
|
|
396
396
|
)
|
|
397
397
|
.unwrap();
|
|
398
398
|
}
|
|
@@ -669,7 +669,7 @@ impl CSharpCodegen {
|
|
|
669
669
|
|| f.nillable
|
|
670
670
|
|| (f.cardinality.is_list() && f.cardinality.min_occurs == 0);
|
|
671
671
|
let default_arg = if is_opt {
|
|
672
|
-
"default
|
|
672
|
+
format!("default({})", field_type)
|
|
673
673
|
} else {
|
|
674
674
|
format!("default({})!", field_type)
|
|
675
675
|
};
|
|
@@ -204,8 +204,19 @@ impl PythonCodegen {
|
|
|
204
204
|
if let Some(ref header) = self.options.custom_header {
|
|
205
205
|
let trimmed = header.trim();
|
|
206
206
|
if !trimmed.is_empty() {
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
for line in trimmed.lines() {
|
|
208
|
+
let line_trimmed = line.trim_start();
|
|
209
|
+
if line_trimmed.starts_with("//") {
|
|
210
|
+
let content = line_trimmed.strip_prefix("//").unwrap_or("");
|
|
211
|
+
out.push('#');
|
|
212
|
+
out.push_str(content);
|
|
213
|
+
out.push('\n');
|
|
214
|
+
} else {
|
|
215
|
+
out.push_str(line);
|
|
216
|
+
out.push('\n');
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
out.push('\n');
|
|
209
220
|
}
|
|
210
221
|
}
|
|
211
222
|
|
|
@@ -180,7 +180,7 @@ fn test_csharp_records_and_enums_generation() {
|
|
|
180
180
|
|
|
181
181
|
assert!(cs_code.contains("using System.Text.Json.Serialization;"));
|
|
182
182
|
assert!(cs_code.contains("namespace Crm.Models;"));
|
|
183
|
-
assert!(cs_code.contains("[JsonConverter(typeof(JsonStringEnumConverter))]"));
|
|
183
|
+
assert!(cs_code.contains("[JsonConverter(typeof(JsonStringEnumConverter<OrderStatus>))]"));
|
|
184
184
|
assert!(cs_code.contains("public enum OrderStatus"));
|
|
185
185
|
assert!(cs_code.contains("[XmlEnum(\"pending\")]"));
|
|
186
186
|
assert!(cs_code.contains("Pending,"));
|
|
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
|