mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-12 16:46:47 +02:00
add build check for auth backticks
This commit is contained in:
parent
424566a1ac
commit
21901ee2ac
1 changed files with 4 additions and 2 deletions
|
@ -66,8 +66,10 @@ def check_entry(line_num, segments):
|
||||||
# END Description
|
# END Description
|
||||||
# START Auth
|
# START Auth
|
||||||
# values should conform to valid options only
|
# values should conform to valid options only
|
||||||
auth = segments[index_auth].replace('`', '')
|
auth = segments[index_auth]
|
||||||
if auth not in auth_keys:
|
if auth != 'No' and (not auth.startswith('`') or not auth.endswith('`')):
|
||||||
|
add_error(line_num, "auth value is not enclosed with `backticks`")
|
||||||
|
if auth.replace('`', '') not in auth_keys:
|
||||||
add_error(line_num, "{} is not a valid Auth option".format(auth))
|
add_error(line_num, "{} is not a valid Auth option".format(auth))
|
||||||
# END Auth
|
# END Auth
|
||||||
# START HTTPS
|
# START HTTPS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue