Swagger fix for require overriding some local variables