Skip to content

Commit

Permalink
fix(openapi): avoid overwriting description in info
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Apr 20, 2020
1 parent 0d044e8 commit a394fa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions honeybee_schema/_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ def get_openapi(
'Schema version must be specified as argument or from distribution metadata'
)

if info:
open_api['info'] = info

if version:
open_api['info']['version'] = version

if description:
open_api['info']['description'] = description

if info:
open_api['info'] = info

if external_docs:
open_api['externalDocs'] = external_docs

Expand Down

0 comments on commit a394fa3

Please sign in to comment.