Skip to content

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

@FatsLan

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?

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