dict
Format Nesting
#158
Labels
development
Standard development
r&d:polykey:core activity 1
Secret Vault Sharing and Secret History Management
Specification
Currently the
dict
format does just stringifes nested objects.Instead, we want the object to displayed with the same dict formatter, with some right padding to indicate it is the inner value of the key above it.
We want to use 2 spaces (
) as the indent, as
\t
is simply too big.This should look like:
It only matters that the values are aligned for each nesting layer. This should look like
Arrays will have their values be listed underneath a key
Optiing out
To opt out of this behaviour:
[].join(",")
for Arrays. We have been using doing this for single-lined arrays already, so we should keep this up.Additional context
Tasks
dict
formatThe text was updated successfully, but these errors were encountered: