Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set sig to Array when empty #531

Closed
ChevronTango opened this issue Jul 30, 2023 · 0 comments · Fixed by #533
Closed

Set sig to Array when empty #531

ChevronTango opened this issue Jul 30, 2023 · 0 comments · Fixed by #533

Comments

@ChevronTango
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant