-
Notifications
You must be signed in to change notification settings - Fork 278
Review schemas for possible consolidation and clean-up #1043
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
Comments
We should review the schemas, consolidate and clean up. FILEDICT_SCHEMA and TARGETINFO_SCHEMA are clearly serving different purposes, apologies for the bad lead. Let's review schemas after #1031 has resolved, as that PR is renaming and cleaning up some of the schemas we are discussing here and makes it hard to reason about where overlap exists. |
Closing this issue as it was filed against (what is now known as) the legacy codebase: issue seems to not be relevant anymore. Please re-open or file a new issue if you feel that the issue is revelant to current python-tuf. The current parsing/validation is likely not perfect but it is far easier to reason about. More detailsCurrent source code (and upcoming 1.0 release) only contains the modern components
Legacy components (e.g. tuf.client, tuf.repository_tool, tuf.repository_lib as well as the repo and client scripts) are no longer included. See announcement and API reference for more details. |
Uh oh!
There was an error while loading. Please reload this page.
Description of issue or feature request:

FILEDICT_SCHEMA
andTARGETINFO_SCHEMA
are doing identical jobs but with the different representations of the information. Just look at their description:This issue is based on a discussion with Joshua Lock: #1031 (comment)
Current behavior:
FILEDICT_SCHEMA
is used in some functions when it is suitable andTARGETINFO_SCHEMA
in other places where it would be easier to use it.Expected behavior:
I think we should stick to one of those even if it means adding some additional argument to functions and doing little refactoring.
The text was updated successfully, but these errors were encountered: