diff --git a/specification/_types/mapping/TypeMapping.ts b/specification/_types/mapping/TypeMapping.ts index c36e42dde0..b28248d8f1 100644 --- a/specification/_types/mapping/TypeMapping.ts +++ b/specification/_types/mapping/TypeMapping.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Dictionary } from '@spec_utils/Dictionary' +import { Dictionary, SingleKeyDictionary } from '@spec_utils/Dictionary' import { Metadata, PropertyName } from '@_types/common' import { DynamicMapping, DynamicTemplate } from './dynamic-template' import { @@ -36,7 +36,7 @@ export class TypeMapping { date_detection?: boolean dynamic?: DynamicMapping dynamic_date_formats?: string[] - dynamic_templates?: Dictionary[] + dynamic_templates?: SingleKeyDictionary[] _field_names?: FieldNamesField index_field?: IndexField /** @doc_id mapping-meta-field */ diff --git a/specification/indices/put_mapping/IndicesPutMappingRequest.ts b/specification/indices/put_mapping/IndicesPutMappingRequest.ts index 246122b664..1fab6a4150 100644 --- a/specification/indices/put_mapping/IndicesPutMappingRequest.ts +++ b/specification/indices/put_mapping/IndicesPutMappingRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Dictionary } from '@spec_utils/Dictionary' +import { Dictionary, SingleKeyDictionary } from '@spec_utils/Dictionary' import { RequestBase } from '@_types/Base' import { ExpandWildcards, @@ -141,7 +141,7 @@ export interface Request extends RequestBase { /** * Specify dynamic templates for the mapping. */ - dynamic_templates?: Dictionary[] + dynamic_templates?: SingleKeyDictionary[] /** * Control whether field names are enabled for the index. */