Skip to content

Instantly share code, notes, and snippets.

@roborourke
Created June 9, 2021 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roborourke/702c2262087bee0d53cfcce83560c0e4 to your computer and use it in GitHub Desktop.
Save roborourke/702c2262087bee0d53cfcce83560c0e4 to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"audience": {
"type": "object",
"properties": {
"include": {
"type": "string",
"enum": [
"any",
"all",
"none"
]
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"include": {
"type": "string",
"enum": [
"any",
"all",
"none"
]
},
"rules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"=",
"!=",
"*=",
"!*",
"^=",
"gte",
"lte",
"gt",
"lt"
]
},
"value": {
"type": [
"string",
"number"
]
}
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment