faasr_parse {FaaSr} | R 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)
}
[Package FaaSr version 1.3.0 Index]