Skip to content

Release 1.7.0

Latest

Choose a tag to compare

@danielaparker danielaparker released this 27 Apr 02:55
· 54 commits to master since this release
  • Fixed bugs:

    • Git Issue #690: JMESPath let expression with operator in variable binding

    • Git Issue #697: Fixed warning when using wide characters and mapping to integer types narrower than wchar_t.

  • Changes

    • The jsonschema enum class walk_result has been renamed to walk_state.
      For backwards compatibility, the old name walk_result has been aliased to walk_state.
  • Enhancements:

    • Git Issue #692: The enum staj_event_type has been redefined as a BitMask Type,
      which means that the bitwise operators operator&, operator|, operator^, operator~, operator&=, operator|=, and operator^=
      are now defined for this type. The enum has been renamed to staj_events, following the convention that
      bitmask types have plural names, but aliased back to its original name staj_event_type for backwards compatibility.
      This allows us to write e.g.

      constexpr auto mask = staj_events::begin_array | staj_events::begin_object;
      if ((event_type & mask) != staj_events{}) {/*...*/}
    • The basic_json_pointer operator / now accepts a basic_string_view as a right-hand argument,
      and member function append now accepts a basic_string_view as an argument.

    • The class key_value has a new member name that returns a basic_string_view of the key.

    • Git Issue #695: Optimized for JMESPath short circuit of or and and operators via PR #698

    • jsonschema validation now supports validation of instances of jsoncons::pmr::json and jsoncons::pmr::ojson.
      Note that temporary allocations still use std::allocator.

    • Reduced allocations in jsonschema compilation and validation.

    • Git Discussion #678: "Make json-patches in custom report that will fix validating object", is now supported.

      • The json_schema function validate now suports providing a reporter that takes an optional user supplied patch as an argument.

      • The json_schema function walk now suports providing a reporter that takes an optional user supplied patch as an argument.