Skip to content

Commit

Permalink
run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeane committed Dec 6, 2023
1 parent a65b559 commit a797b6c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flask_pydantic_spec/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ def _generate_spec(self) -> Mapping[str, Any]:
)
publish = self.class_view_apispec[path][method.lower()]["publish"]
category = self.class_view_apispec[path][method.lower()]["category"]
no_api_key = self.class_view_apispec[path][method.lower()].get("no_api_key", False)
no_api_key = self.class_view_apispec[path][method.lower()].get(
"no_api_key", False
)
if self.config.MODE == "publish_only" and not publish:
continue
else:
Expand Down Expand Up @@ -389,7 +391,9 @@ def _generate_spec(self) -> Mapping[str, Any]:
if path not in self.routes_by_category[category]:
self.routes_by_category[category][path] = dict()

self.routes_by_category[category][path][method.lower()] = path_method_info
self.routes_by_category[category][path][
method.lower()
] = path_method_info
if hasattr(func, "deprecated"):
routes[path][method.lower()]["deprecated"] = True

Expand Down

0 comments on commit a797b6c

Please sign in to comment.