-
Notifications
You must be signed in to change notification settings - Fork 72
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
each tasks.json target_metadata.target_keys.target
should be a string, but is a list of strings
#1094
Comments
Thank you for pointing out this issue! We've been trying to follow the documentation and are wondering about the relationship between this change and using v 3.0.0 vs. v 4.0.0. We haven't had any validation errors with the config file so far, but it seems like this might change if we start using v 4.0.0? Are there any foreseeable issues to removing the brackets if we are planning to use v3.0.0? We've tested validate_config() with the brackets removed and received indication of "valid", but just want to make sure we aren't missing any potential complications. @Annabella-Hines |
Hi Rebecca. Tagging @annakrystalli to answer your question. |
Hi @rborchering ! Removing the brackets will be fine in both See issue hubverse-org/schemas#97 (comment) and related PR hubverse-org/schemas#108 for more details. |
I should probably add a bit more context. Brackets will not cause validation errors (of the config or of model output submissions) in any R functionality. However, as arrays are encoded differently in e.g. python vs R, not fixing the brackets will cause problems for python functionality like the visualisation software @matthewcornell is working on. Overall I recommend removing the square brackets as technically they are not allowed. Initially we just weren't sure how to encode the restriction in the schema (and have fallen back on documentation), hence they managed to slip passed validation. We're trying to fix this in |
Thanks Anna and Matt! That's really helpful context. We'll go ahead and remove the brackets. Thanks again for identifying this misalignment! |
closes #1094 by changing tasks.json `target_metadata.target_keys.target` entries from a list of strings to a string
Hi Folks. I believe the
target_metadata
sections of the file hub-config/tasks.json are invalid. IIUC eachtarget_metadata.target_keys.target
should be a string, but in this repo each is a list of strings. For example:Instead, I think this example should be:
My references are:
I wonder if this is/should be checked by https://github.com/hubverse-org/hubAdmin/blob/main/R/validate_config.R ?
Thank you.
The text was updated successfully, but these errors were encountered: