diff --git a/src/node/hooks/express/openapi.js b/src/node/hooks/express/openapi.js index 26f898b9..76ed6693 100644 --- a/src/node/hooks/express/openapi.js +++ b/src/node/hooks/express/openapi.js @@ -688,7 +688,7 @@ exports.expressCreateServer = async (_, args) => { // support jsonp response format if (req.query.jsonp && isValidJSONPName.check(req.query.jsonp)) { res.header('Content-Type', 'application/javascript'); - response = `${req.query.jsonp}(${JSON.stringify(response)}`; + response = `${req.query.jsonp}(${JSON.stringify(response)})`; } // send response