Skip to content

Commit c19baa1

Browse files
authored
Fix headers for custom Org (#219)
* Fix headers for custom Org * Fix header * Update generate_library_oasv2.py This fix corrects the formatting of the auth header, which is only required when using the generator with one's own organization.
1 parent 247b879 commit c19baa1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

generator/generate_library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def main(inputs):
631631
sys.exit(2)
632632
else:
633633
response = requests.get(f'https://api.meraki.com/api/v1/organizations/{org_id}/openapiSpec',
634-
headers={f'Bearer: {api_key}'})
634+
headers={'Authorization': f'Bearer {api_key}'})
635635
if response.ok:
636636
spec = response.json()
637637
else:

generator/generate_library_oasv2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def main(inputs):
566566
sys.exit(2)
567567
else:
568568
response = requests.get(f'https://api.meraki.com/api/v1/organizations/{org_id}/openapiSpec',
569-
headers={f'Bearer: {api_key}'})
569+
headers={'Authorization': f'Bearer {api_key}'})
570570
if response.ok:
571571
spec = response.json()
572572
else:

0 commit comments

Comments
 (0)