You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rules with the name "request" and "data" may be defined for test purposes to mock out the normal request/data documents. The parser currently does not recognize expressions of the form "request = term" or "data = term" as rules.
ParseRuleFromBody should be updated to handle the "request" and "data" refs.
Example:
package ex
request = {"foo":1,"bar":2}
or
package ex
data = {"foo": 1, "data": 2}
A simple workaround is to declare the rule body, e.g., request = {"foo": 1} :- true.
The text was updated successfully, but these errors were encountered:
tsandall
changed the title
Bug in parsing of "request"
Bug in parsing of "request" and "data" rules
Dec 21, 2016
With the request document changes, the "request" var in "request = <term>"
is transformed into a ref. As a result, the body to rule conversion was not
working (and returning an error).
Fixesopen-policy-agent#202
Rules with the name "request" and "data" may be defined for test purposes to mock out the normal request/data documents. The parser currently does not recognize expressions of the form "request = term" or "data = term" as rules.
ParseRuleFromBody should be updated to handle the "request" and "data" refs.
Example:
or
A simple workaround is to declare the rule body, e.g.,
request = {"foo": 1} :- true
.The text was updated successfully, but these errors were encountered: