From ca168f4a236884e7cb6ee4a411cc1d7418626122 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 27 Nov 2025 21:05:45 +0400 Subject: [PATCH] Fix UserAgentProcessor properties default values (#5758) (cherry picked from commit 161789d05d398a6e745374f7d3fbeef7e06f9e15) --- output/openapi/elasticsearch-openapi.json | 11 +++-------- output/openapi/elasticsearch-serverless-openapi.json | 11 +++-------- output/schema/schema.json | 11 +++-------- specification/ingest/_types/Processors.ts | 2 +- 4 files changed, 10 insertions(+), 25 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index f5a8b59797..d8da6be54b 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -103831,15 +103831,10 @@ "description": "Controls what properties are added to `target_field`.", "default": [ "name", - "major", - "minor", - "patch", - "build", "os", - "os_name", - "os_major", - "os_minor", - "device" + "device", + "original", + "version" ], "type": "array", "items": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index e752e680ad..be1ed6a64b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -67848,15 +67848,10 @@ "description": "Controls what properties are added to `target_field`.", "default": [ "name", - "major", - "minor", - "patch", - "build", "os", - "os_name", - "os_major", - "os_minor", - "device" + "device", + "original", + "version" ], "type": "array", "items": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 3d439b31d7..ccbffa4286 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -182956,15 +182956,10 @@ "required": false, "serverDefault": [ "name", - "major", - "minor", - "patch", - "build", "os", - "os_name", - "os_major", - "os_minor", - "device" + "device", + "original", + "version" ], "type": { "kind": "array_of", diff --git a/specification/ingest/_types/Processors.ts b/specification/ingest/_types/Processors.ts index 1ec077575a..60ab53a4d7 100644 --- a/specification/ingest/_types/Processors.ts +++ b/specification/ingest/_types/Processors.ts @@ -532,7 +532,7 @@ export class UserAgentProcessor extends ProcessorBase { target_field?: Field /** * Controls what properties are added to `target_field`. - * @server_default ['name', 'major', 'minor', 'patch', 'build', 'os', 'os_name', 'os_major', 'os_minor', 'device'] + * @server_default ['name', 'os', 'device', 'original', 'version'] */ properties?: UserAgentProperty[] /**