diff --git a/compiler/src/steps/validate-model.ts b/compiler/src/steps/validate-model.ts index 469a94b79c..0226d80395 100644 --- a/compiler/src/steps/validate-model.ts +++ b/compiler/src/steps/validate-model.ts @@ -231,6 +231,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma Phases: ['ilm._types', 'xpack.usage'], Pipeline: ['ingest._types', 'logstash._types'], Policy: ['enrich._types', 'ilm._types', 'slm._types'], + Query: ['_global.knn_search._types', 'xpack.usage'], RequestItem: ['_global.msearch', '_global.msearch_template'], ResponseItem: ['_global.bulk', '_global.mget', '_global.msearch'], RoleMapping: ['security._types', 'xpack.usage'], diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index e895f430af..4af1496827 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -13,7 +13,5 @@ "response": [] } }, - "generalErrors": [ - "Query is present in multiple namespaces: _global.knn_search._types and xpack.usage" - ] + "generalErrors": [] } \ No newline at end of file