Skip to content

Commit 6d8f603

Browse files
committed
fix(test): throw response validation errors
1 parent e0e7ad9 commit 6d8f603

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/openapi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export async function openApi<
126126
console.log('Response body fails validation: ', error);
127127
console.log('Emitted from:', req.originalUrl);
128128
console.debug(body);
129+
throw error;
129130
},
130131
},
131132
}

0 commit comments

Comments
 (0)