Skip to content

Instantly share code, notes, and snippets.

@codedmart
Created January 22, 2016 15:44
Show Gist options
  • Save codedmart/b3cca1dd1fbde70f5bad to your computer and use it in GitHub Desktop.
Save codedmart/b3cca1dd1fbde70f5bad to your computer and use it in GitHub Desktop.
{
'conditions':[
{
'values':[
'ip'
],
'path':'sg_status_list',
'relation':'is'
},
{
'conditions':[
{
'values':[
{
'type':'Asset',
'id':9
}
],
'path':'assets',
'relation':'is'
},
{
'values':[
{
'type':'Asset',
'id':23
}
],
'path':'assets',
'relation':'is'
}
],
'logical_operator':'or'
}
],
'logical_operator':'and'
}
@frerich
Copy link

frerich commented Jan 22, 2016

data Relation = Is

data LogicalOp = And | Or

data Type = Assert

type Path = String

data Value = Value Type Integer Path

data Condition = Condition LogicalOp [Condition] [Value] Path Relation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment