Skip to content

Commit

Permalink
fix: changed dictionary field access into get invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
cionzo authored and stephenfin committed Dec 6, 2022
1 parent c78bf64 commit 47df5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/openapi/openapi30.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def _httpresource(endpoint, method, properties, convert, render_examples,
for status, response in responses.items():
for headername, header in response.get('headers', {}).items():
yield indent + ':resheader {name}:'.format(name=headername)
for line in convert(header['description']).splitlines():
for line in convert(header.get('description', '')).splitlines():
yield '{indent}{indent}{line}'.format(**locals())

for cb_name, cb_specs in properties.get('callbacks', {}).items():
Expand Down

0 comments on commit 47df5cc

Please sign in to comment.