hubverse-org / hubAdmin

Utilities for administering hubverse Infectious Disease Modeling Hubs
https://hubverse-org.github.io/hubAdmin/
Other
1 stars 2 forks source link

Ensure at least one task ID definition within the schema specifies a data type #13

Closed annakrystalli closed 5 months ago

annakrystalli commented 5 months ago

Now that we are allowing null as a valid entry to both required and optional we need to validate that a given task ID does not have null in all it's properties throughout a given model task.

Currently, if, for example, all horizon properties are null, the following error is produced by create_hub_schema()

Error in `map2()`:
ℹ In index: 3.
ℹ With name: horizon.
Caused by error:
! horizon must be a DataType, not NULL
Run `rlang::last_trace()` to see where the error occurred.