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

[Task]: Improve callMethod() and callFunction() to validate arguments #43785

Open
ravinperera00 opened this issue Jan 31, 2025 · 0 comments
Open
Labels
Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Task

Comments

@ravinperera00
Copy link
Contributor

ravinperera00 commented Jan 31, 2025

Description

Add validation within the callMethod() and callFunction() methods with the Runtime API to validate the arguments that are passed in.

Ex:

function foo(string bar, int baz = 5) {}

The above function, when called, should have at least one argument passed to it. Additionally, the argument should also be of the appropriate data type (a string in this case).

Describe your task(s)

No response

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ravinperera00 ravinperera00 added Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Task labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Task
Projects
None yet
Development

No branches or pull requests

1 participant