Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
6e90c043
Unverified
Commit
6e90c043
authored
Apr 06, 2021
by
Marek Dano
Committed by
GitHub
Apr 06, 2021
Browse files
Merge pull request #1614 from marekdano/add-auth-keys
Add 'User-Agent' to the auth_keys array in the validate_format script
parents
8744b3a3
76701dbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
.github/CONTRIBUTING.md
View file @
6e90c043
...
@@ -28,6 +28,7 @@ Example entry:
...
@@ -28,6 +28,7 @@ Example entry:
*
`apiKey`
- _the API uses a private key string/token for authentication - try and use the correct parameter_
*
`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_
*
`X-Mashape-Key`
- _the name of the header which may need to be sent_
*
`No`
- _the API requires no authentication to run_
*
`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:
\*
Currently, the only accepted inputs for the
`CORS`
field are as follows:
...
...
build/validate_format.py
View file @
6e90c043
...
@@ -5,7 +5,7 @@ import sys
...
@@ -5,7 +5,7 @@ import sys
anchor
=
'###'
anchor
=
'###'
min_entries_per_section
=
3
min_entries_per_section
=
3
auth_keys
=
[
'apiKey'
,
'OAuth'
,
'X-Mashape-Key'
,
'No'
]
auth_keys
=
[
'apiKey'
,
'OAuth'
,
'X-Mashape-Key'
,
'No'
,
'User-Agent'
]
punctuation
=
[
'.'
,
'?'
,
'!'
]
punctuation
=
[
'.'
,
'?'
,
'!'
]
https_keys
=
[
'Yes'
,
'No'
]
https_keys
=
[
'Yes'
,
'No'
]
cors_keys
=
[
'Yes'
,
'No'
,
'Unknown'
]
cors_keys
=
[
'Yes'
,
'No'
,
'Unknown'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment