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 1717 * under the License.
1818 */
1919
20+ const IGNORED_ERRORS = [
21+ "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class"
22+ ]
23+
2024/** Errors for an endpoint */
2125export class EndpointError {
2226 request : string [ ]
@@ -35,6 +39,10 @@ export class ValidationErrors {
3539
3640 /** Add some error information relative to an endpoint's request or response */
3741 addEndpointError ( endpoint : string , part : 'request' | 'response' , message : string ) : void {
42+ if ( IGNORED_ERRORS . includes ( message ) ) {
43+ return
44+ }
45+
3846 let error = this . endpointErrors [ endpoint ]
3947 if ( error == null ) {
4048 error = { request : [ ] , response : [ ] }
@@ -54,10 +62,8 @@ export class ValidationErrors {
5462 let count = 0
5563 const logArray = function ( errs : string [ ] , prefix = '' ) : void {
5664 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 ++
6167 }
6268 }
6369
Original file line number Diff line number Diff line change 1616 " Request: missing json spec query parameter 'index'"
1717 ],
1818 "response" : []
19- },
20- "xpack.info" : {
21- "request" : [
22- " request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class"
23- ],
24- "response" : []
2519 }
2620 },
2721 "generalErrors" : []
You can’t perform that action at this time.
0 commit comments