Make swaggerApi global so that javascript extensions have access to it.