Skip to content

How to add a rule defined in JSON into Knowledge Library #238

Discussion options

You must be logged in to vote

Got it to work..using the lines below
ruleset, err := pkg.ParseJSONRuleset([]byte(ruleInJson))
.
.
err = ruleBuilder.BuildRuleFromResource("Test", "0.1.1", pkg.NewBytesResource([]byte(ruleset)))
Thanks.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kalyangouthammekala
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kalyangouthammekala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants