diff --git a/src/swagger3/open-api3.js b/src/swagger3/open-api3.js
index <HASH>..<HASH> 100644
--- a/src/swagger3/open-api3.js
+++ b/src/swagger3/open-api3.js
@@ -10,6 +10,9 @@ module.exports = {
 };
 
 function buildBodyValidation(dereferenced, originalSwagger, currentPath, currentMethod, middlewareOptions = {}) {
+    if (!dereferenced.paths[currentPath][currentMethod].requestBody){
+        return;
+    }
     const bodySchemaV3 = dereferenced.paths[currentPath][currentMethod].requestBody.content['application/json'].schema;
     const defaultAjvOptions = {
         allErrors: true
@@ -96,4 +99,4 @@ function findKey(object, searchFunc) {
             return keys[i];
         }
     }
-}
\ No newline at end of file
+}
adding a check for requestBody on current path and method before extracting the schema