From a980f874170adee18d3bcb5e5d990e0f25642e7f Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 17 Jul 2025 15:44:28 +0400 Subject: [PATCH] Ignore human overloading error in xpack.info request --- compiler/src/validation-errors.ts | 14 ++++++++++---- output/schema/validation-errors.json | 6 ------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/compiler/src/validation-errors.ts b/compiler/src/validation-errors.ts index 221e35a072..5260775f3e 100644 --- a/compiler/src/validation-errors.ts +++ b/compiler/src/validation-errors.ts @@ -17,6 +17,10 @@ * under the License. */ +const IGNORED_ERRORS = [ + "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class" +] + /** Errors for an endpoint */ export class EndpointError { request: string[] @@ -35,6 +39,10 @@ export class ValidationErrors { /** Add some error information relative to an endpoint's request or response */ addEndpointError (endpoint: string, part: 'request' | 'response', message: string): void { + if (IGNORED_ERRORS.includes(message)) { + return + } + let error = this.endpointErrors[endpoint] if (error == null) { error = { request: [], response: [] } @@ -54,10 +62,8 @@ export class ValidationErrors { let count = 0 const logArray = function (errs: string[], prefix = ''): void { for (const err of errs) { - if (err !== 'Missing request & response') { - console.error(`${prefix}${err}`) - count++ - } + console.error(`${prefix}${err}`) + count++ } } diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 4ac54d965a..0db6e24292 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -16,12 +16,6 @@ "Request: missing json spec query parameter 'index'" ], "response": [] - }, - "xpack.info": { - "request": [ - "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class" - ], - "response": [] } }, "generalErrors": []