-
Notifications
You must be signed in to change notification settings - Fork 15
Update to curation format v2 #157
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
base: main
Are you sure you want to change the base?
Conversation
self.curation_data = curation_data | ||
# validate the curation data | ||
format_version = curation_data.get("format_version", None) | ||
# assume version 2 if not present |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I would not do this. This will be a mess with previous curation files.
Lets be strict and accept only dict that do not the format_version, this is part of the spec. no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No curation format is needed for validation!
What we can do is try 2 and then 1. Ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add it to the test curation. The controller should fail if not provided
"removed_units": [] | ||
"merges": [], | ||
"splits": [], | ||
"removes": [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format_version="2"
cool |
No description provided.