Skip to content

Commit

Permalink
Added an exception for a known error in Cloudmersive's API
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Jul 19, 2020
1 parent 63cc52f commit b069b6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/specs/real-world/known-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function getKnownApiErrors () {
let errors = [
// If the API definition failed to download, then retry
{
error: /Error downloading https?:.*swagger\.yaml/,
error: /Error downloading https?:/,
whatToDo: "retry",
},
{
Expand Down Expand Up @@ -73,6 +73,13 @@ function getKnownApiErrors () {
whatToDo: "ignore",
},

// Cloudmersive.com's API definition contains invalid JSON Schema types
{
api: "cloudmersive.com:ocr",
error: "No enum match for: application/json at #/schema/type",
whatToDo: "ignore",
},

// Figshare.com's API definition contains arrays without "items" schemas
{
api: "figshare.com",
Expand Down

0 comments on commit b069b6e

Please sign in to comment.