From 02c4edea271645cd810dae1e27d01f5decfa3af6 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 21 Aug 2024 19:05:06 +0400 Subject: [PATCH] Add _ignored to Get API response type (#2800) --- output/schema/schema.json | 16 +++++++++++++++- output/typescript/types.ts | 1 + specification/_global/get/types.ts | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index dbe721097b..642cdb1969 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -23832,6 +23832,20 @@ } } }, + { + "name": "_ignored", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + }, { "name": "found", "required": true, @@ -23910,7 +23924,7 @@ } } ], - "specLocation": "_global/get/types.ts#L25-L35" + "specLocation": "_global/get/types.ts#L25-L36" }, { "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 9f426d0c1c..39d340d82a 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -365,6 +365,7 @@ export interface FieldCapsResponse { export interface GetGetResult { _index: IndexName fields?: Record + _ignored?: string[] found: boolean _id: Id _primary_term?: long diff --git a/specification/_global/get/types.ts b/specification/_global/get/types.ts index 776f87114a..6010744cc7 100644 --- a/specification/_global/get/types.ts +++ b/specification/_global/get/types.ts @@ -25,6 +25,7 @@ import { long } from '@_types/Numeric' export class GetResult { _index: IndexName fields?: Dictionary + _ignored?: string[] found: boolean _id: Id _primary_term?: long