Skip to content

Commit

Permalink
Updated create swagger to use the last endpoint
Browse files Browse the repository at this point in the history
when processing the endpoints with multiple version

Signed-off-by: Shilpi Jaiswal (shilpi gpg signed) <shilpijaiswal1@gmail.com>
  • Loading branch information
shilpiarya committed Jul 3, 2020
1 parent 4d1dd2d commit f300c05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/create_swagger_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,9 @@ def get_endpoint_paths(source_node_or_cluster, port, base_url, auth,

ep_index = next_ep_index
next_ep_index += 1
##This is the last endpoint so utilize the max version
if next_ep_index == num_endpoints:
current_endpoint = end_point_list_json[ep_index]

if current_endpoint in exclude_end_points:
ep_index += 1
Expand Down

0 comments on commit f300c05

Please sign in to comment.