ValidPathInfo
field does not adhere to the JSON guidlines
#10311
Milestone
ValidPathInfo
field does not adhere to the JSON guidlines
#10311
ca
fieldStrings like
fixed:r:sha256:adsfjlawefjliajsdl
need to be parsed, and that is no good. We should use an object instead, something likeThis should be implemented as a canonical nlohmann JSON "instance" for
ContentAddress
(and friends), with unit test characterization tests checking round trips. The ValidPathInfo JSON methods can then just use that nlohmann JSON instance.Noticed while working on #10310 -- comparing the
ca
field in the tests was way more hackish than it should be.signatures
fieldThe
<name>:<pub-key>
format should be replaced with a two-field JSON object.Other info
See also #9866 for something similar
CC @roberth
The text was updated successfully, but these errors were encountered: