Skip to content

Commit 404cae1

Browse files
committed
[8.19] Allow duplicate Query and ClusterInfo
1 parent 224f37b commit 404cae1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler/src/steps/validate-model.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
214214
const existingDuplicates: Record<string, string[]> = {
215215
Action: ['indices.modify_data_stream', 'indices.update_aliases', 'watcher._types'],
216216
Actions: ['ilm._types', 'security.put_privileges', 'watcher._types'],
217+
ClusterInfo: ['cluster.allocation_explain', 'esql._types'],
217218
ComponentTemplate: ['cat.component_templates', 'cluster._types'],
218219
Context: ['_global.get_script_context', '_global.search._types', 'nodes._types'],
219220
DatabaseConfigurationMetadata: ['ingest.get_geoip_database', 'ingest.get_ip_location_database'],
@@ -231,6 +232,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
231232
Phases: ['ilm._types', 'xpack.usage'],
232233
Pipeline: ['ingest._types', 'logstash._types'],
233234
Policy: ['enrich._types', 'ilm._types', 'slm._types'],
235+
Query: ['_global.knn_search._types', 'xpack.usage'],
234236
RequestItem: ['_global.msearch', '_global.msearch_template'],
235237
ResponseItem: ['_global.bulk', '_global.mget', '_global.msearch'],
236238
RoleMapping: ['security._types', 'xpack.usage'],

output/schema/validation-errors.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,5 @@
106106
"response": []
107107
}
108108
},
109-
"generalErrors": [
110-
"Query is present in multiple namespaces: _global.knn_search._types and xpack.usage",
111-
"ClusterInfo is present in multiple namespaces: cluster.allocation_explain and esql._types"
112-
]
109+
"generalErrors": []
113110
}

0 commit comments

Comments
 (0)