File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 17
17
* under the License.
18
18
*/
19
19
20
+ const IGNORED_ERRORS = [
21
+ "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class"
22
+ ]
23
+
20
24
/** Errors for an endpoint */
21
25
export class EndpointError {
22
26
request : string [ ]
@@ -35,6 +39,10 @@ export class ValidationErrors {
35
39
36
40
/** Add some error information relative to an endpoint's request or response */
37
41
addEndpointError ( endpoint : string , part : 'request' | 'response' , message : string ) : void {
42
+ if ( IGNORED_ERRORS . includes ( message ) ) {
43
+ return
44
+ }
45
+
38
46
let error = this . endpointErrors [ endpoint ]
39
47
if ( error == null ) {
40
48
error = { request : [ ] , response : [ ] }
@@ -54,10 +62,8 @@ export class ValidationErrors {
54
62
let count = 0
55
63
const logArray = function ( errs : string [ ] , prefix = '' ) : void {
56
64
for ( const err of errs ) {
57
- if ( err !== 'Missing request & response' ) {
58
- console . error ( `${ prefix } ${ err } ` )
59
- count ++
60
- }
65
+ console . error ( `${ prefix } ${ err } ` )
66
+ count ++
61
67
}
62
68
}
63
69
Original file line number Diff line number Diff line change 260
260
" Request: missing json spec query parameter 'index'"
261
261
],
262
262
"response" : []
263
- },
264
- "xpack.info" : {
265
- "request" : [
266
- " request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class"
267
- ],
268
- "response" : []
269
263
}
270
264
},
271
265
"generalErrors" : [
You can’t perform that action at this time.
0 commit comments