Closed arjunrajlab closed 1 month ago
I see in the parent_child_worker code this line:
None # This is a special value that indicates no parent or child
But values can only be numbers as shown in the schema of property values:
"values": {
"id": recursiveValuesId,
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "number",
},
{
"$ref": recursiveValuesId,
},
],
},
},
Should we also accept None
as a valid value?
Also, this worker send property values one by one instead of using the new function: add_multiple_annotation_property_values
Oh interesting! Yes, I think we should allow None
. It's possible that a worker may want to return numbers for some subproperties but not others, as is the case here.
And yes I have a few workers I still have to update :).
Also can we allow strings? Or would that create other problems?
It seems that the update that changed some of the endpoints has resulted in the parent_child_worker breaking. It's in the image_analysis_project repository. It's a simple property worker that just returns some numbers to help link up parent and child annotations, and it used to work just fine. When I run it now, I get the following error in the logs of worker:
It seems like some sort of validation is not working anymore? Not sure.