opa ast.Module unable to unmarshal json.(problem with some keyword) #700
gururajarao79
started this conversation in
Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Iam trying to unMarshal AST json to ast.Module structure of OPA.
policy.rego:
package example.authz
import rego.v1
use command opa parse --v1-compatible --format json policy.rego generated ast:
go code converting json bytes into ast.Module
I am getting error panic: ast: unable to unmarshal term. The problem is with keyword "some". if there is "some" keyword in original rego it is not Unmarshalling to ast.Module
Beta Was this translation helpful? Give feedback.
All reactions