Skip to content

Commit

Permalink
Sort paths in output.
Browse files Browse the repository at this point in the history
  • Loading branch information
cerrussell committed Jan 14, 2024
1 parent cd65931 commit 4603b7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions atom_tools/lib/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ def convert_usages(self):
"""
Converts usages to OpenAPI.
"""
endpoints = self.usages.generate_endpoints()
endpoints = sorted(set(self.usages.generate_endpoints()))
paths_obj = {endpoint: {} for endpoint in endpoints}
return {
'openapi': self.openapi_version,
'info': {'title': 'Atom Usages', 'version': '1.0.0'},
'paths': {endpoint: {} for endpoint in endpoints}
'paths': paths_obj
}

def convert_reachables(self):
Expand Down

0 comments on commit 4603b7f

Please sign in to comment.