You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now the tuf init and a few other commands default to setting the sig field to null when it has no valid signatures. A few other commands and CLIs break when they try and read this new json as they are expecting an array, and null is unexpected. Subsequently we have to manually set the sig to [] when writing a script to handle TUF logic so that the next commands will parse the json correctly. Instead the CLI should always return valid JSON with an empty array, rather than a null, so that the downstream JSON parsing always passes correctly.
The text was updated successfully, but these errors were encountered:
right now the
tuf init
and a few other commands default to setting thesig
field tonull
when it has no valid signatures. A few other commands and CLIs break when they try and read this new json as they are expecting an array, and null is unexpected. Subsequently we have to manually set the sig to[]
when writing a script to handle TUF logic so that the next commands will parse the json correctly. Instead the CLI should always return valid JSON with an empty array, rather than a null, so that the downstream JSON parsing always passes correctly.The text was updated successfully, but these errors were encountered: