Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result of Run Function and provided curl command of that function run differ #51

Open
mklaehn opened this issue Feb 28, 2018 · 0 comments

Comments

@mklaehn
Copy link

mklaehn commented Feb 28, 2018

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant