Open
Description
Concidering the following function deployed to a Fn Server.
package com.example.fn;
public class PojoFunction {
public Object greet(String name) {
if (name == null || name.isEmpty()) {
name = "World";
}
return new Greeting(name);
}
public static class Greeting {
public final String name;
public Greeting(String name) {
this.name = name;
}
}
}
Executing the Run Function
Action with Payload MyName
does not produce the same result as executing the provided curl
command.
Result of Fn UI function execution
{
"name": "\"MyName\""
}
Result of curl function execution
{
"name": "MyName"
}
Metadata
Metadata
Assignees
Labels
No labels