Skip to content

Commit ac205e0

Browse files
committed
set api_spec to False if api.Api is initted with doc=False
1 parent c24f8ca commit ac205e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_restx/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def init_app(self, app, **kwargs):
228228
self.license = kwargs.get("license", self.license)
229229
self.license_url = kwargs.get("license_url", self.license_url)
230230
self.url_scheme = kwargs.get("url_scheme", self.url_scheme)
231-
self._add_specs = kwargs.get("add_specs", True if self.doc else False)
231+
self._add_specs = kwargs.get("add_specs", True if self._doc else False)
232232

233233
# If app is a blueprint, defer the initialization
234234
try:

0 commit comments

Comments
 (0)