Skip to content

Commit ae3dcf6

Browse files
Added exceptions for known errors
1 parent dbf3b10 commit ae3dcf6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

test/specs/real-world/known-errors.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ function getKnownApiErrors () {
8888
whatToDo: "ignore",
8989
},
9090

91+
// Contribly's API has a misspelled field name
92+
{
93+
api: "contribly.com",
94+
error: "Property 'includeThumbnail' listed as required but does not exist",
95+
whatToDo: "ignore",
96+
},
97+
9198
// Figshare.com's API definition contains arrays without "items" schemas
9299
{
93100
api: "figshare.com",
@@ -102,13 +109,41 @@ function getKnownApiErrors () {
102109
whatToDo: "ignore",
103110
},
104111

112+
// Motaword has validation errors
113+
{
114+
api: "motaword.com",
115+
error: "Data does not match any schemas from 'oneOf'",
116+
whatToDo: "ignore",
117+
},
118+
119+
// OpenBankingProject's API has validation errors
120+
{
121+
api: "openbankingproject.ch",
122+
error: "Data does not match any schemas from 'oneOf'",
123+
whatToDo: "ignore",
124+
},
125+
126+
// Missing a required field
127+
{
128+
api: "opto22.com:groov",
129+
error: "Property 'isCoreInUse' listed as required but does not exist",
130+
whatToDo: "ignore",
131+
},
132+
105133
// APIs.guru is missing one of Nexmo's API definitions, which causes a 404 error
106134
{
107135
api: "nexmo.com",
108136
error: /Error downloading .*\.yml\s+HTTP ERROR 404/,
109137
whatToDo: "ignore",
110138
},
111139

140+
// Missing a required field
141+
{
142+
api: "postmarkapp.com:server",
143+
error: "Property 'TemplateId' listed as required but does not exist",
144+
whatToDo: "ignore",
145+
},
146+
112147
// Stoplight.io's API definition uses multi-type schemas, which isn't allowed by Swagger 2.0
113148
{
114149
api: "stoplight.io",

0 commit comments

Comments
 (0)