validate_query {rsynthbio} | R Documentation |
Validate Query Structure
Description
Validates the structure and contents of the query based on the v2.0 model. This function checks that the query is a list and contains all required keys.
Usage
validate_query(query)
Arguments
query |
A list containing the query data. |
Value
Invisibly returns TRUE if validation passes. Throws an error If the query structure is invalid or missing required keys.
Examples
# Create a valid query
query <- get_valid_query()
validate_query(query) # Passes validation
# Example with invalid query (missing required key)
## Not run:
invalid_query <- list(inputs = list(), mode = "mean estimation")
validate_query(invalid_query) # Throws error for missing modality
## End(Not run)
[Package rsynthbio version 2.0.0 Index]