Skip to content

Commit 92f6df9

Browse files
authored
Adding effective-mapping to the ingest simulate response (#5141)
1 parent afdb81a commit 92f6df9

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed

output/schema/schema.json

Lines changed: 15 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/simulate/ingest/SimulateIngestResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { Id, IndexName, VersionNumber } from '@_types/common'
2121
import { ErrorCause } from '@_types/Errors'
22+
import { TypeMapping } from '@_types/mapping/TypeMapping'
2223
import { AdditionalProperties } from '@spec_utils/behaviors'
2324
import { Dictionary } from '@spec_utils/Dictionary'
2425
import { Stringified } from '@spec_utils/Stringified'
@@ -75,4 +76,5 @@ export class IngestDocumentSimulation
7576
* doc.
7677
*/
7778
error?: ErrorCause
79+
effective_mapping?: TypeMapping
7880
}

specification/simulate/ingest/examples/response/SimulateIngestResponseExample3.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@ value: |-
1313
"_source": {
1414
"foo": "foo"
1515
},
16-
"executed_pipelines": []
16+
"executed_pipelines": [],
17+
"effective_mapping": {
18+
"_doc": {
19+
"properties": {
20+
"foo": {
21+
"type": "keyword"
22+
}
23+
}
24+
}
25+
}
1726
}
1827
},
1928
{
@@ -24,7 +33,16 @@ value: |-
2433
"_source": {
2534
"bar": "rab"
2635
},
27-
"executed_pipelines": []
36+
"executed_pipelines": [],
37+
"effective_mapping": {
38+
"_doc": {
39+
"properties": {
40+
"bar": {
41+
"type": "keyword"
42+
}
43+
}
44+
}
45+
}
2846
}
2947
}
3048
]

0 commit comments

Comments
 (0)