nix-super/doc/manual/rl-next/store-object-info.md
John Ericson 84c65135a5 ValidPathInfo JSON format should use null not omit field
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-06-03 08:21:22 -04:00

736 B

synopsis prs
Store object info JSON format now uses `null` rather than omitting fields. 9995

The store object info JSON format, used for e.g. nix path-info, no longer omits fields to indicate absent information, but instead includes the fields with a null value. For example, "ca": null is used to to indicate a store object that isn't content-addressed rather than omitting the ca field entirely. This makes records of this sort more self-describing, and easier to consume programmatically.

We will follow this design principle going forward; the JSON guidelines in the contributing section have been updated accordingly.