Skip to content

Commit

Permalink
Merge pull request #25 from ChengaDev/add-ipstack-validation
Browse files Browse the repository at this point in the history
Add ipstack access_key validation
  • Loading branch information
jondot committed Nov 3, 2022
2 parents 0dcdfda + 12860b3 commit d4948bf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ providers:
invalid:
status_code: "5\\d\\d"

ipstack:
validation:
request:
id: "ipstack:validation"
desc: "ipstack access key"
params:
- name: ipstack_1
desc: ipstack access key
uri: http://api.ipstack.com/134.201.250.155?access_key={{ipstack_1}}
method: get
response:
body: "^((?!invalid_access_key).)*$"
invalid:
status_code: "5\\d\\d"

localytics:
validation:
request:
Expand Down

0 comments on commit d4948bf

Please sign in to comment.