Skip to contents

Get the json schema download URL for a given config file version

Usage

get_schema_url(config = c("tasks", "admin", "model"), version, branch = "main")

Arguments

config

Name of config file to validate. One of "tasks" or "admin".

version

A valid version of Infectious Disease Modeling Hubs schema (e.g. "v0.0.1").

branch

The branch of the Infectious Disease Modeling Hubs schemas repository from which to fetch schema. Defaults to "main".

Value

The json schema download URL for a given config file version.

See also

Other functions supporting config file validation: get_schema_valid_versions(), get_schema(), validate_config(), validate_hub_config(), view_config_val_errors()

Examples

get_schema_url(config = "tasks", version = "v0.0.0.9")
#> https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v0.0.0.9/tasks-schema.json