Skip to content

Commit

Permalink
[3/5] Add contact information to Swagger UI (#6205)
Browse files Browse the repository at this point in the history
Add casts required by mypy
  • Loading branch information
hannes-ucsc committed Jan 21, 2025
1 parent 30ebc02 commit cac1f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/azul/chalice.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def __init__(self,

def _add_contact_to_spec(self, spec: JSON) -> MutableJSON:
spec = copy_json(spec)
info = spec.setdefault('info', {})
info['description'] = info.get('description', '') + config.contact_us
info = json_dict(spec.setdefault('info', {}))
info['description'] = json_str(info.get('description', '')) + config.contact_us
return spec

@property
Expand Down

0 comments on commit cac1f8b

Please sign in to comment.