avrotize 2.20.1__py3-none-any.whl → 2.20.2__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 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.1'
32
- __version_tuple__ = version_tuple = (2, 20, 1)
31
+ __version__ = version = '2.20.2'
32
+ __version_tuple__ = version_tuple = (2, 20, 2)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -17,10 +17,12 @@ import { {{ import_type }} } from '{{ import_path }}';
17
17
  import pako from 'pako';
18
18
  {%- endif %}
19
19
 
20
+ {%- if typed_json_annotation %}
20
21
  @jsonObject
22
+ {%- endif %}
21
23
  export class {{ class_name }} {
22
24
  {%- if avro_annotation %}
23
- public static AvroType: avro.Type = avro.Type.forSchema({{ avro_schema_json }});
25
+ public static AvroType: avro.Type = avro.parse({{ avro_schema_json }});
24
26
  {%- endif %}
25
27
 
26
28
  {%- for field in fields %}
avrotize/avrotots.py CHANGED
@@ -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: avrotize
3
- Version: 2.20.1
3
+ Version: 2.20.2
4
4
  Summary: Tools to convert from and to Avro Schema from various other schema languages.
5
5
  Author-email: Clemens Vasters <clemensv@microsoft.com>
6
6
  Requires-Python: >=3.10
@@ -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=GX4k0Dtvj1JbElz5pLZZPA7-Q6X0QMcPMU_rWHvIsZE,706
3
+ avrotize/_version.py,sha256=2IKC53Yuy8OkeM7Y925zvXBAVbeS3BX7r1mxAsm6Hs8,706
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=81k-6ZiIeRJENPXuUzPZchBGxr9Oper4Ra4GdFypWnA,33418
25
+ avrotize/avrotots.py,sha256=YykibKsWj2fE8yjMlkfJs0Ox0IXwncJYxxQ1YZZqFSo,33225
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
@@ -88,7 +88,7 @@ avrotize/avrotopython/test_enum.jinja,sha256=PeVxzC-gV5bizVnRs58RPoUDbXGI696B-VO
88
88
  avrotize/avrotorust/dataclass_enum.rs.jinja,sha256=-1-73XnG1k1eONMq7_aENVpoHOsMnj55CyjU3PT8M7U,2232
89
89
  avrotize/avrotorust/dataclass_struct.rs.jinja,sha256=AXFqCCW8fVdJXnSYTfpwKQeGG9JH8Goc3g1ILKEU-mE,7853
90
90
  avrotize/avrotorust/dataclass_union.rs.jinja,sha256=HuDKlM03hOkVx9Lm5p93IzQfUCokHz8wOu9iyEkwkUk,3801
91
- avrotize/avrotots/class_core.ts.jinja,sha256=rBFvGHPnzVt5kt9jdoVX6WToJao_xiWPT19IK6Gl7hk,5045
91
+ avrotize/avrotots/class_core.ts.jinja,sha256=KEKSXsjPVTXP_LTOIUVjsTWfT3g1ZVSrGjy0UMkEj0g,5081
92
92
  avrotize/avrotots/class_test.ts.jinja,sha256=zm3wXaSJ225y7knLj6I9zjrkPTEROLHYmBr8eDo7pCo,2752
93
93
  avrotize/avrotots/enum_core.ts.jinja,sha256=6NN_nF2y9us2saM7Wag8IN73BdIF0vxhPxq83NQEnm8,1522
94
94
  avrotize/avrotots/gitignore.jinja,sha256=iYEkEO7BDDeNPTG8RSGJruh0Ol7HdYG4otQHhYLvC1c,376
@@ -153,8 +153,8 @@ avrotize/structuretots/index.ts.jinja,sha256=-R4R_En1N4W_BEN3z3bLts9Xi4KnBTDLrYM
153
153
  avrotize/structuretots/package.json.jinja,sha256=fYC2mguywpYf1-poALreCK4kH_OGWMUF6-7KWBzTprk,751
154
154
  avrotize/structuretots/test_class.ts.jinja,sha256=GHNzFdv3V-gYnk-rAnGS74JZD_3hSdiWzp3i_pPyGsQ,1059
155
155
  avrotize/structuretots/tsconfig.json.jinja,sha256=8Pl65JW8uOMEexxkteobo0ZEqsJBO31HegNRUrf8XGQ,515
156
- avrotize-2.20.1.dist-info/entry_points.txt,sha256=m8J2TWiqbZh7SBQezc1CNrM_GVPWf01zOFcAKhzCC0U,51
157
- avrotize-2.20.1.dist-info/licenses/LICENSE,sha256=xGtQGygTETTtDQJafZCUbpsed3GxO6grmqig-jGEuSk,11348
158
- avrotize-2.20.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
159
- avrotize-2.20.1.dist-info/METADATA,sha256=m30Ck16ejF2g4h9NGhDCHCVJSBA-p7ZLxykoOGLZDZk,76788
160
- avrotize-2.20.1.dist-info/RECORD,,
156
+ avrotize-2.20.2.dist-info/entry_points.txt,sha256=m8J2TWiqbZh7SBQezc1CNrM_GVPWf01zOFcAKhzCC0U,51
157
+ avrotize-2.20.2.dist-info/licenses/LICENSE,sha256=xGtQGygTETTtDQJafZCUbpsed3GxO6grmqig-jGEuSk,11348
158
+ avrotize-2.20.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
159
+ avrotize-2.20.2.dist-info/METADATA,sha256=nYx7OsUFnPbywGI3jGz0Zq-sFWtWpTdyjHXrgXv4ZlQ,76788
160
+ avrotize-2.20.2.dist-info/RECORD,,