Bläddra i källkod

Merge pull request #1614 from marekdano/add-auth-keys

Add 'User-Agent' to the auth_keys array in the validate_format script
pull/1616/head
Marek Dano 3 år sedan
committed by GitHub
förälder
incheckning
6e90c04353
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. +1
    -0
      .github/CONTRIBUTING.md
  2. +1
    -1
      build/validate_format.py

+ 1
- 0
.github/CONTRIBUTING.md Visa fil

@@ -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:



+ 1
- 1
build/validate_format.py Visa fil

@@ -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']


Laddar…
Avbryt
Spara