Skip to content

Commit

Permalink
fix: don't worry about exact error
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor-Bernard committed Mar 5, 2024
1 parent e1baddf commit aaeb544
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 @@ -7,7 +7,7 @@ const shouldIgnoreError = (err) => {
// This error is because the validator is still based on swagger-editor instead of swagger-editor next.
if (
err.location == 'Structural error at openapi' &&
/should match pattern "^3\\.0\\.\\d(-.+)?$"/.test(err.message)
/should match pattern "^3\\.0\\.\\d(-.+)?$".*/.test(err.message)
) {
return true;
}
Expand Down

0 comments on commit aaeb544

Please sign in to comment.