{
  "$schema" : "https://json-schema.org/draft/2020-12/schema",
  "$id" : "https://voltdb.com/voltsp/schemas/resource/javascript-engine",
  "title" : "Javascript-engine Resource Configuration",
  "description" : "This plugin allows execution of JavaScript code on streamed data using the GraalVM JavaScript engine.\n\n## JavaScript API\n\nThe JavaScript code can access the `input` data passed to the resource.\n\nThe JavaScript code should define a function named 'process' that takes the input data and returns the output data:\n\n```javascript\nfunction process(input) {\n  var output = ...\n  return output;\n}\n```\n\n## Security Considerations\n\nThe JavaScript resource runs with limited permissions by default.\nIn this configuration, it is granted access to public Java methods and fields,\nallowing interaction with host objects such as calling methods like Map.get() or\naccessing simple properties.\n",
  "type" : "object",
  "properties" : {
    "javascript-engine" : {
      "type" : "object",
      "properties" : { },
      "additionalProperties" : false
    }
  },
  "required" : [ "javascript-engine" ],
  "additionalProperties" : false
}
