Releases: jsontypedef/json-typedef-codegen
v0.4.1
This release includes a patch-level bump to all targets, incorporating changes introduced in #17.
In brief, with this release jtd-codegen
will produce valid code even in the face of properties named ""
, "0"
, "my_property_with_fancy_characters_\uFDFD"
, etc. This is thanks to a refactor of the internals of jtd-codegen
in charge of assigning names to identifiers.
v0.4.0
This release includes backwards-incompatible changes to Python codegen, introduced in #14. No backwards-incompatible changes are made to any other targets.
The backwards-incompatible changes to Python are:
- The methods on generated classes are now called
to_json_data
andfrom_json_data
. They were previously calledto_json
andfrom_json
. - The JTD
timestamp
type now generates into a Pythondatetime
. Previously, they would generate asstr
.
As a non-breaking change, generated Python code will now typecheck against mypy
in --strict
mode.
v0.3.0
v0.2.0
This release of jtd-codegen
makes alterations to all generated targets. In particular, this release:
- Adjusts the whitespace of the outputted code to be "well-formatted" in a large portion of cases.
- Fixes the naming convention of fields in Python
- Fixes the naming convention of initialisms (HTTP, XML, ID, etc.) in Python and Go.
- Adds a comment to the top of all generated files indicating what version of jtd-codegen created them.