avrotize 2.20.2__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 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.2'
32
- __version_tuple__ = version_tuple = (2, 20, 2)
31
+ __version__ = version = '2.20.3'
32
+ __version_tuple__ = version_tuple = (2, 20, 3)
33
33
 
34
34
  __commit_id__ = commit_id = None
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 (will be set via template)
269
+ # Handle enums - use first value with Object.values()
270
270
  if is_enum:
271
- return f'{field_type}.values()[0]'
271
+ return f'Object.values({field_type})[0] as {field_type}'
272
272
 
273
273
  # Handle primitive types
274
274
  primitive_values = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: avrotize
3
- Version: 2.20.2
3
+ Version: 2.20.3
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=2IKC53Yuy8OkeM7Y925zvXBAVbeS3BX7r1mxAsm6Hs8,706
3
+ avrotize/_version.py,sha256=zWrnvLYMmNIz-JX-LgZy-RvWCl35mFILxC33cf_uCqE,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=YykibKsWj2fE8yjMlkfJs0Ox0IXwncJYxxQ1YZZqFSo,33225
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
@@ -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.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,,
156
+ avrotize-2.20.3.dist-info/entry_points.txt,sha256=m8J2TWiqbZh7SBQezc1CNrM_GVPWf01zOFcAKhzCC0U,51
157
+ avrotize-2.20.3.dist-info/licenses/LICENSE,sha256=xGtQGygTETTtDQJafZCUbpsed3GxO6grmqig-jGEuSk,11348
158
+ avrotize-2.20.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
159
+ avrotize-2.20.3.dist-info/METADATA,sha256=C5CWYzo7-8XIoMxwtpZU1GwrKlGxkU3eJSZG2lZy8k8,76788
160
+ avrotize-2.20.3.dist-info/RECORD,,