structurize 2.20.1__py3-none-any.whl → 2.20.3__py3-none-any.whl
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.
- avrotize/_version.py +3 -3
- avrotize/avrotots.py +3 -10
- {structurize-2.20.1.dist-info → structurize-2.20.3.dist-info}/METADATA +1 -1
- {structurize-2.20.1.dist-info → structurize-2.20.3.dist-info}/RECORD +8 -8
- {structurize-2.20.1.dist-info → structurize-2.20.3.dist-info}/WHEEL +0 -0
- {structurize-2.20.1.dist-info → structurize-2.20.3.dist-info}/entry_points.txt +0 -0
- {structurize-2.20.1.dist-info → structurize-2.20.3.dist-info}/licenses/LICENSE +0 -0
- {structurize-2.20.1.dist-info → structurize-2.20.3.dist-info}/top_level.txt +0 -0
avrotize/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '2.20.
|
|
32
|
-
__version_tuple__ = version_tuple = (2, 20,
|
|
31
|
+
__version__ = version = '2.20.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 20, 3)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g6ab86e24e'
|
avrotize/avrotots.py
CHANGED
|
@@ -266,9 +266,9 @@ class AvroToTypeScript:
|
|
|
266
266
|
first_type = field_type.split('|')[0].strip()
|
|
267
267
|
return self.generate_test_value(first_type, is_enum)
|
|
268
268
|
|
|
269
|
-
# Handle enums - use first value (
|
|
269
|
+
# Handle enums - use first value with Object.values()
|
|
270
270
|
if is_enum:
|
|
271
|
-
return f'{field_type}
|
|
271
|
+
return f'Object.values({field_type})[0] as {field_type}'
|
|
272
272
|
|
|
273
273
|
# Handle primitive types
|
|
274
274
|
primitive_values = {
|
|
@@ -504,13 +504,6 @@ class AvroToTypeScript:
|
|
|
504
504
|
* Provides methods for encoding, decoding, and validating Avro data.
|
|
505
505
|
*/
|
|
506
506
|
export class Type {
|
|
507
|
-
/**
|
|
508
|
-
* Create a Type instance from an Avro schema.
|
|
509
|
-
* @param schema - Avro schema object or JSON string
|
|
510
|
-
* @returns Type instance
|
|
511
|
-
*/
|
|
512
|
-
static forSchema(schema: any): Type;
|
|
513
|
-
|
|
514
507
|
/**
|
|
515
508
|
* Encode a value to a Buffer.
|
|
516
509
|
* @param obj - Value to encode
|
|
@@ -582,7 +575,7 @@ class AvroToTypeScript:
|
|
|
582
575
|
}
|
|
583
576
|
|
|
584
577
|
/**
|
|
585
|
-
* Parse an Avro schema.
|
|
578
|
+
* Parse an Avro schema and return a Type instance.
|
|
586
579
|
* @param schema - Schema as string or object
|
|
587
580
|
* @param options - Parse options
|
|
588
581
|
* @returns Type instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: structurize
|
|
3
|
-
Version: 2.20.
|
|
3
|
+
Version: 2.20.3
|
|
4
4
|
Summary: Tools to convert from and to JSON Structure from various other schema languages.
|
|
5
5
|
Author-email: Clemens Vasters <clemensv@microsoft.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
avrotize/__init__.py,sha256=JjPSX7c686TV00J_x0Py9JwXS0aJl8vpLn81Y0ondkw,3606
|
|
2
2
|
avrotize/__main__.py,sha256=5pY8dYAURcOnFRvgb6fgaOIa_SOzPLIWbU8-ZTQ0jG4,88
|
|
3
|
-
avrotize/_version.py,sha256=
|
|
3
|
+
avrotize/_version.py,sha256=c1f6HVwKhz2iveYqvQHo50_J2dNZNGyaYqu9eVXpq-E,714
|
|
4
4
|
avrotize/asn1toavro.py,sha256=QDNwfBfXMxSH-k487CA3CaGCGDzOLs4PpVbbENm5uF0,8386
|
|
5
5
|
avrotize/avrotize.py,sha256=VHFpBltMVBpyt0ju3ZWW725BKjQ4Fk-nrAy8udW-X44,5713
|
|
6
6
|
avrotize/avrotocpp.py,sha256=hRZV247_TDD7Sm6_8sFx-UH5SueLLx2Wg6TvAVUX0iE,25693
|
|
@@ -22,7 +22,7 @@ avrotize/avrotoparquet.py,sha256=qm5hfia5elW1Yn4KACG8bbudLAqQSwGk3fIkTvdT5Rg,908
|
|
|
22
22
|
avrotize/avrotoproto.py,sha256=STqbdGjVrgKrlKXt-6dZlekW_Oq0W0StRx80St1XqIc,22486
|
|
23
23
|
avrotize/avrotopython.py,sha256=sPsSLseSq-toKHnsFsYRRtGePGYospRz2mwGLep-POw,31147
|
|
24
24
|
avrotize/avrotorust.py,sha256=QMIBNkFpDlH44kuQo24k5D-f0lmdhoA5b7hEbhKsnMw,22214
|
|
25
|
-
avrotize/avrotots.py,sha256=
|
|
25
|
+
avrotize/avrotots.py,sha256=u_XLjlHN0Gof5QYlpqK4X9WoX9rL30TjQMPg4TiyYnI,33241
|
|
26
26
|
avrotize/avrotoxsd.py,sha256=iGQq_8kC0kfKsqvqS6s_mO-kJ8N5G8vXOwqRI_DZUxc,17744
|
|
27
27
|
avrotize/cddltostructure.py,sha256=MA2c-P3CIEAxEaBX-FF299gR55xcLEV3FrfTr2QfayM,74491
|
|
28
28
|
avrotize/commands.json,sha256=afZ36gTItJdtM8z-qOTOw0MazKz1WKZMztY86JUHcgU,88538
|
|
@@ -62,9 +62,9 @@ avrotize/structuretoxsd.py,sha256=01VpasyWSMOx04sILHLP7H-WkhGdXAEGKohUUfgrNf0,32
|
|
|
62
62
|
avrotize/xsdtoavro.py,sha256=nQtNH_3pEZBp67oUCPqzhvItEExHTe-8obsIfNRXt8Y,19064
|
|
63
63
|
avrotize/dependencies/cpp/vcpkg/vcpkg.json,sha256=se5qnUVQ1Q6wN_DqgIioqKg_y7ouh9oly2iBAJJXkgw,414
|
|
64
64
|
avrotize/dependencies/typescript/node22/package.json,sha256=oAW_2X-b715kV7aajwuONZEMkyQUJGviG3GwnoUa7hU,387
|
|
65
|
-
structurize-2.20.
|
|
66
|
-
structurize-2.20.
|
|
67
|
-
structurize-2.20.
|
|
68
|
-
structurize-2.20.
|
|
69
|
-
structurize-2.20.
|
|
70
|
-
structurize-2.20.
|
|
65
|
+
structurize-2.20.3.dist-info/licenses/LICENSE,sha256=xGtQGygTETTtDQJafZCUbpsed3GxO6grmqig-jGEuSk,11348
|
|
66
|
+
structurize-2.20.3.dist-info/METADATA,sha256=mqaCl-pbeydSgZeR4he9ENUm5EXGe1vYO08CEy-Vcr4,3670
|
|
67
|
+
structurize-2.20.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
68
|
+
structurize-2.20.3.dist-info/entry_points.txt,sha256=biIH7jA5auhVqfbwHVk2gmD_gvrPYKgjpCAn0JWZ-Rs,55
|
|
69
|
+
structurize-2.20.3.dist-info/top_level.txt,sha256=yn-yQ0Cm1O9fbF8KJgv4IIvX4YRGelKgPqZF1wS5P50,9
|
|
70
|
+
structurize-2.20.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|