Skip to content

Commit

Permalink
chore: clarified duration syntax (#49)
Browse files Browse the repository at this point in the history
* chore: clarified duration syntax

* chore: moved comment up
  • Loading branch information
aaguiarz authored Jan 16, 2025
1 parent 9808a13 commit be3f80f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stores/condition-data-types/store.fga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ model: |
condition is_valid_double(_double: double) {
_double != 0.0 && _double > 0.0
}
# Duration supports "h" (hours) "m" (minutes) "s" (seconds) "ms" (milliseconds) "us" (microseconds) "ns" (nanoseconds)
condition is_valid_duration(_duration :duration) {
_duration != null && _duration != duration("0s") && _duration > duration("0s")
}
Expand Down

0 comments on commit be3f80f

Please sign in to comment.