diff --git a/flask_restx/api.py b/flask_restx/api.py index 450cbaa9..ca0a7937 100644 --- a/flask_restx/api.py +++ b/flask_restx/api.py @@ -228,7 +228,7 @@ def init_app(self, app, **kwargs): self.license = kwargs.get("license", self.license) self.license_url = kwargs.get("license_url", self.license_url) self.url_scheme = kwargs.get("url_scheme", self.url_scheme) - self._add_specs = kwargs.get("add_specs", True) + self._add_specs = kwargs.get("add_specs", True if self._doc else False) # If app is a blueprint, defer the initialization try: