faasr_parse: faasr_parse

View source: R/faasr_parse.R

faasr_parseR Documentation

faasr_parse

Description

This function uses JSON parsing and validation to ensure the Payload is compliant Two checks are made here: 1) is it a valid JSON format? and 2) does it conform to the FaaSr JSON schema? If both checks pass, return a list with all the parsed key/value pairs Otherwise, abort

Usage

faasr_parse(faasr_payload)

Arguments

faasr_payload

JSON Payload provided upon Action invocation by the FaaS platform

Value

faasr list with parsed and validated Payload

Examples

# This function can be run only in the container
if (interactive()){
faasr <- faasr_parse(faasr_payload)
}

FaaSr documentation built on June 22, 2024, 9:38 a.m.