Skip to content

Commit

Permalink
Add retries field to suggested specs rules (#100)
Browse files Browse the repository at this point in the history
The `retries` field of the specs was missing from the suggested rules. Together with `$other": {  ".validate": false }` this meant that the retries parameter could not be used in specs.
  • Loading branch information
Chris Raynor authored Jan 5, 2017
1 parent 7df13b6 commit fbaad3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ These don't have to use a custom token, for instance you could use `auth != null
"timeout": {
".validate": "newData.isNumber() && newData.val() > 0"
},
"retries": {
".validate": "newData.isNumber() && newData.val() >= 0"
},
"$other": {
".validate": false
}
Expand Down

0 comments on commit fbaad3d

Please sign in to comment.