Skip to content

Endpoints need to check ... is empty #201

@dsweber2

Description

@dsweber2

It's possible to hand non-existent parameters to the endpoints because ... isn't checked. The following call should throw an error for example, but doesn't:

epidatr::pub_covidcast(
            source = "chng",
            signals = "smoothed_adj_outpatient_covid",
            geo_type = "state",
            time_type = "day",
            geo_values = "*",
            time_values = epidatr::epirange(from = "20170101", to = "20240101"),
            issues = "*",
            fetch_params = fetch_params_list(return_empty = TRUE, timeout_seconds = timeout_seconds)
          )

since it should be fetch_args and fetch_args_list

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions