Skip to contents

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

Usage

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

Arguments

config

Name of config file to validate. One of "tasks", "admin", "model" or "target-data".

version

A valid version of hubverse schema (e.g. "v0.0.1").

branch

The branch of the hubverse 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(), get_schema_valid_versions()

Examples

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