json icon indicating copy to clipboard operation
json copied to clipboard

Boost Intrusive to be able to print the json pointer of where an error occourred when performing the value_to operation.

Open RoyBellingan opened this issue 11 months ago • 9 comments

When used with

https://github.com/RoyBellingan/boostIntrusive/tree/master

It should produce this



------
default msg : source composite size does not match target size
expanded msg: the key >> timestamp << is non optional and missing in path /0/comment/0

------
default msg : source composite size does not match target size
expanded msg: the key >> author << is non optional and missing in path /0/comment/0/likes/1

------
default msg : not a number
expanded msg: Last json pointer was /0/comment/0/timestamp

RoyBellingan avatar Feb 11 '25 17:02 RoyBellingan

An automated preview of the documentation is available at https://1070.json.prtest2.cppalliance.org/libs/json/doc/html/index.html

cppalliance-bot avatar Feb 11 '25 17:02 cppalliance-bot

An automated preview of the documentation is available at https://1070.json.prtest2.cppalliance.org/libs/json/doc/html/index.html

cppalliance-bot avatar Feb 15 '25 15:02 cppalliance-bot

An automated preview of the documentation is available at https://1070.json.prtest2.cppalliance.org/libs/json/doc/html/index.html

cppalliance-bot avatar Feb 18 '25 01:02 cppalliance-bot

An automated preview of the documentation is available at https://1070.json.prtest2.cppalliance.org/libs/json/doc/html/index.html

cppalliance-bot avatar Feb 18 '25 01:02 cppalliance-bot

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.70%. Comparing base (c02d872) to head (220ea73).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1070   +/-   ##
========================================
  Coverage    93.70%   93.70%           
========================================
  Files           91       91           
  Lines         9139     9139           
========================================
  Hits          8564     8564           
  Misses         575      575           
Files with missing lines Coverage Δ
include/boost/json/detail/value_to.hpp 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c02d872...220ea73. Read the comment docs.

codecov[bot] avatar Feb 18 '25 01:02 codecov[bot]

I have an idea for an alternative approach. I'll implement it first, so that I can compare yours with mine.

grisumbras avatar Feb 19 '25 10:02 grisumbras

My alternative: #1075.

grisumbras avatar Feb 25 '25 02:02 grisumbras