Skip to content

How to resolve “does not match function signature” in jsonata.Extension #18

Description

@FatsLan

Excuse.
I have defined a jsonata.Extension, for example:

"mandatory": {
Func: func(input string) (string, error) {
if input == "" {
return input, errors.New(" input is required ")
}
return input, nil
},
}

If the parameter is not passed to “input”, how can I make jsonata not report an error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions