Skip to content

Commit 391b03e

Browse files
committed
bad practice to commit code without running UT locally
1 parent d09c1a1 commit 391b03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyswagger/scanner/v2_0/patch_obj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _operation(self, path, obj, app):
4444
setattr(obj, '_prim_factory', app.prim_factory)
4545

4646
# inherit service-wide security requirements
47-
if obj.security == None:
47+
if obj.security == None and isinstance(app.root, Swagger):
4848
obj.update_field('security', app.root.security)
4949

5050
@Disp.register([PathItem])

0 commit comments

Comments
 (0)