mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-17 11:07:18 +02:00
ppl: bubble up values, bug fixes (#2213)
This commit is contained in:
parent
e138054cb9
commit
bdccd4f785
10 changed files with 218 additions and 118 deletions
|
@ -141,6 +141,9 @@ func (o Object) Clone() Value {
|
|||
func (o Object) RegoValue() ast.Value {
|
||||
kvps := make([][2]*ast.Term, 0, len(o))
|
||||
for k, v := range o {
|
||||
if v == nil {
|
||||
v = Null{}
|
||||
}
|
||||
kvps = append(kvps, [2]*ast.Term{
|
||||
ast.StringTerm(k),
|
||||
ast.NewTerm(v.RegoValue()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue