From 19184f73a388325612bc7fc3302d2035459d850b Mon Sep 17 00:00:00 2001 From: Marek Dano Date: Sat, 3 Apr 2021 10:36:20 +0100 Subject: [PATCH 1/2] Add 'User-Agent' to the auth_keys array in the validate_format script --- build/validate_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/validate_format.py b/build/validate_format.py index 545fea2c..4610f379 100755 --- a/build/validate_format.py +++ b/build/validate_format.py @@ -5,7 +5,7 @@ import sys anchor = '###' min_entries_per_section = 3 -auth_keys = ['apiKey', 'OAuth', 'X-Mashape-Key', 'No'] +auth_keys = ['apiKey', 'OAuth', 'X-Mashape-Key', 'No', 'User-Agent'] punctuation = ['.', '?', '!'] https_keys = ['Yes', 'No'] cors_keys = ['Yes', 'No', 'Unknown'] From 76701dbd993f9342678801de8cb8ec7d8d8990a0 Mon Sep 17 00:00:00 2001 From: Marek Dano Date: Tue, 6 Apr 2021 08:40:30 +0100 Subject: [PATCH 2/2] Update CONTIRBUTING.md file with 'User-Agent' --- .github/CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 1cdb51f5..7d39c8b5 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -28,6 +28,7 @@ Example entry: * `apiKey` - _the API uses a private key string/token for authentication - try and use the correct parameter_ * `X-Mashape-Key` - _the name of the header which may need to be sent_ * `No` - _the API requires no authentication to run_ +* `User-Agent` - _the name of the header to be sent with requests to the API_ \* Currently, the only accepted inputs for the `CORS` field are as follows: