pub fn assert_input(
parameters: &[Parameter],
arguments: &Map<FullValue>,
function: &str,
package: &str,
kind: PackageKind,
) -> Result<(), LetError>
Expand description
Edited: now returning LetErrors.
Tries to confirm that what we’re told to put in the function is the same as the function accepts.
Arguments
parameters
: The list of what the function accepts as parameters as returned by container.yml.arguments
: The arguments we got to pass to the function.function
: The name of the function we’re trying to evaluate (used for debugging purposes).package
: The name of the internal package (used for debugging purposes).kind
: The kind of the internal package (used for debugging purposes).
Returns
Nothing if the assert went alright, but a LetError describing why it failed on an error.