faasr_parse {FaaSr} | R Documentation |
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
faasr_parse(faasr_payload)
faasr_payload |
JSON Payload provided upon Action invocation by the FaaS platform |
faasr list with parsed and validated Payload
# This function can be run only in the container
if (interactive()){
faasr <- faasr_parse(faasr_payload)
}