-
Fixed bugs:
-
Changes
- The jsonschema enum class
walk_resulthas been renamed towalk_state.
For backwards compatibility, the old namewalk_resulthas been aliased towalk_state.
- The jsonschema enum class
-
Enhancements:
-
Git Issue #692: The enum
staj_event_typehas 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 tostaj_events, following the convention that
bitmask types have plural names, but aliased back to its original namestaj_event_typefor 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_pointeroperator/now accepts abasic_string_viewas a right-hand argument,
and member functionappendnow accepts abasic_string_viewas an argument. -
The class
key_valuehas a new membernamethat returns abasic_string_viewof 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::jsonandjsoncons::pmr::ojson.
Note that temporary allocations still usestd::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_schemafunctionvalidatenow suports providing a reporter that takes an optional user supplied patch as an argument. -
The
json_schemafunctionwalknow suports providing a reporter that takes an optional user supplied patch as an argument.
-
-