Skip to content

JSON Editor 0.7.0

Compare
Choose a tag to compare
@jdorn jdorn released this 14 Jul 03:37
· 223 commits to master since this release

Changelog

  • Add recursive schema support (checkout examples/recursive.html)
  • New defaultProperties keyword
  • Revamp how the "Object Properties" modal works.
  • Fix propertyOrder keyword when using numeric keys
  • Fix bug with some buttons firing form submit when wrapped in a form element
  • Add CSS class to object properties

Backwards Incompatible Changes

A lot changed in this release, so please report any bugs you find!

The Validator now no longer expands schemas. If your code relied on this behavior, it can use the new methods jsoneditor.expandRefs and jsoneditor.expandSchemas.

AbstractEditor has been refactored in order to support recursive schemas. Custom editors must also be changed to reflect the new structure. Most notably, the "build" method was split into 3 different methods:

  • preBuild - does everything it can without creating DOM nodes
  • build - creates DOM nodes
  • postBuild - set up event listeners

Also, instantiating an editor no longer calls build. All 3 of the above methods must be called manually in succession after instantiation to simulate the old behavior.