Skip to content

Releases: jsontypedef/json-typedef-codegen

v0.4.1

02 Apr 20:54
5fb7860
Compare
Choose a tag to compare

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

13 Mar 02:02
c1460d1
Compare
Choose a tag to compare

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 and from_json_data. They were previously called to_json and from_json.
  • The JTD timestamp type now generates into a Python datetime. Previously, they would generate as str.

As a non-breaking change, generated Python code will now typecheck against mypy in --strict mode.

v0.3.0

06 Mar 18:16
d07cf75
Compare
Choose a tag to compare

Release v0.3.0 adds support for Ruby and RBS (Ruby static type signatures) as supported languages for jtd-codegen.

This release makes no backwards-incompatible changes from v0.2.x.

v0.2.0

23 Feb 16:51
c48636a
Compare
Choose a tag to compare

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.