Skip to content

Conversation

alejoe91
Copy link
Member

@alejoe91 alejoe91 commented Jul 2, 2025

No description provided.

self.curation_data = curation_data
# validate the curation data
format_version = curation_data.get("format_version", None)
# assume version 2 if not present
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member Author

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": []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format_version="2"

@samuelgarcia
Copy link
Member

cool

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 this pull request may close these issues.

2 participants