Skip to content

Commit

Permalink
fix: cast error location to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor-Bernard committed Mar 5, 2024
1 parent 4e7a5ec commit 0a789d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/swagger/shouldIgnoreError.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const shouldIgnoreError = (err) => {
// This error is because the validator is still based on swagger-editor instead of swagger-editor-next.
console.debug({ ...err });
switch (err.location) {
switch (String(err.location)) {
case 'Structural error at openapi':
// This gets triggered from the runner using swagger-editor instead of swagger-editor-next
return true;
Expand Down

0 comments on commit 0a789d4

Please sign in to comment.