Skip to content

Instantly share code, notes, and snippets.

@koozz
Created February 21, 2022 14:02
Show Gist options
  • Save koozz/09ac03c4f43d51e40a68059e14bb89e8 to your computer and use it in GitHub Desktop.
Save koozz/09ac03c4f43d51e40a68059e14bb89e8 to your computer and use it in GitHub Desktop.
package person
deny["Missing name."] {
not input.person.name
}
deny["Missing 'teams' element."] {
not input.person.teams
}
warn["No team defined, please configure one."] {
count(input.person.teams) == 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment