Skip to content

Version 2.10.0

Compare
Choose a tag to compare
@bhch bhch released this 03 Jun 06:47
· 192 commits to master since this release

django-jsonform 2.10.0 release notes

June 03, 2022

This release brings some exciting new features while remaining fully backwards-compatible with the previous release (2.9.x).

Like the previous version, it also supports Django >= 2.0 and Python >= 3.4.

What's new

New features

  • additionalProperties
    Now additionalProperties key can have a sub-schema of its own. Earlier, additional keys could only be of string type. But now additional keys can be anything. It also supports referencing other schema.
  • Referencing and recursion
    Now you can use the $ref keyword to reference and reuse other parts of the schema. This means you can even recursively nest an object into itself. Support for the $defs keyword has also been added so that you can declare common schema snippets in one place for reusing.
  • JSONField
    JSONField now accepts a new parameter called pre_save_hook which can be used to process or transform the JSON data before saving.

Minor improvements

  • #38: If an array has minItems set to 0 or undefined, it will be kept blank initially. If it has a default value, it will use the default value instead of being blank. Earlier, an empty item was automatically added to an array which could be undesirable in many cases.

react-json-form (JavaScript)

react-json-form has been updated to version 1.12.1.