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

message: 'not implemented: built-in function 1: #22

Closed
ramchandgadde opened this issue Jun 2, 2020 · 2 comments
Closed

message: 'not implemented: built-in function 1: #22

ramchandgadde opened this issue Jun 2, 2020 · 2 comments

Comments

@ramchandgadde
Copy link

the below policy rule is working in OPA as server and rego Playground.
But the same policy is failing below error, when I deploy as wasm file and calling it from nodeJS.
{ message: 'not implemented: built-in function 1: startswith' } the same issue i see for contains function too.

package example
isPrechecked {
startswith(inputs.country, "AT")
}

@patrick-east
Copy link
Contributor

There are a number of builtin functions that are not yet supported in the SDK, https://www.openpolicyagent.org/docs/latest/wasm/#current-status

I've filed #23 to track them and get the documentation updated to reflect which functions are available.

I'm going to close this issue for now as it is (currently) expected behavior.

@ramchandgadde
Copy link
Author

thanks for the quick update.

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

2 participants