MarketSquare / roboswag

Apache License 2.0
26 stars 2 forks source link

Tags are optional but roboswag fails on missing tags #34

Closed bhirsz closed 2 years ago

bhirsz commented 2 years ago

Editied - I was under wrong impression how the code works. We're parsing the endpoints and then using tag attribute to store them in unique list. If the tags are missing, the code will fail. It still requires deeper analysis.

bhirsz commented 2 years ago

If the tags are missing, we will now generate endpoint class names from API paths. The first part of the path will become endpoint class name (for example GET /users/user will become Users.py with def get_user() method).