An error occurred while loading the file. Please try again.
-
Mathias Chouet authored
only write to currentValue during calculation Fix incorrect use of isDefined in SectionCirc isDefined: protection against empty result .v is now held by ParamDefinition and not ParamValues updated tests adapted value mode checks to new local .v
af5072c4
#' @rdname doApiQuery
#' @export
#'
get_available_params <- function(api,
operation,
cfg = config::get(file = system.file("config.yml",
package = "hubeau"))) {
if (is.null(cfg$apis[[api]])) {
stop("The API '", api, "' is not available on Hub'eau, or is not implemented in the package")
}
if (is.null(cfg$apis[[api]]$operations[[operation]])) {
stop("The operation '", operation, "' is not available for this API, or is not implemented in the package")
}
cfg$apis[[api]]$operations[[operation]]$fields
}