Commit e7cff86
# Backport
This will backport the following commits from `main` to `9.3`:
- [[inference] handle array type without items property
(#250350)](#250350)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Pierre
Gayvallet","email":"pierre.gayvallet@elastic.co"},"sourceCommit":{"committedDate":"2026-01-26T15:26:58Z","message":"[inference]
handle array type without items property (#250350)\n\n## Summary\n\nFix
a bug which was causing a runtime error when using tools with\n`array`
schema without an `items` property (which is somewhat valid JSON\nschema
but somehow getting away in the schema types we use
for\ninference)","sha":"8571eaddf8e2b7e4fc89334dce0ca34e99948802","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","backport:version","v9.4.0","v9.3.1"],"title":"[inference]
handle array type without items
property","number":250350,"url":"https://github.com/elastic/kibana/pull/250350","mergeCommit":{"message":"[inference]
handle array type without items property (#250350)\n\n## Summary\n\nFix
a bug which was causing a runtime error when using tools with\n`array`
schema without an `items` property (which is somewhat valid JSON\nschema
but somehow getting away in the schema types we use
for\ninference)","sha":"8571eaddf8e2b7e4fc89334dce0ca34e99948802"}},"sourceBranch":"main","suggestedTargetBranches":["9.3"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/250350","number":250350,"mergeCommit":{"message":"[inference]
handle array type without items property (#250350)\n\n## Summary\n\nFix
a bug which was causing a runtime error when using tools with\n`array`
schema without an `items` property (which is somewhat valid JSON\nschema
but somehow getting away in the schema types we use
for\ninference)","sha":"8571eaddf8e2b7e4fc89334dce0ca34e99948802"}},{"branch":"9.3","label":"v9.3.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Pierre Gayvallet <pierre.gayvallet@elastic.co>
1 parent b7374f1 commit e7cff86
4 files changed
Lines changed: 47 additions & 10 deletions
File tree
- x-pack/platform
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
Lines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
22 | 54 | | |
23 | 55 | | |
24 | 56 | | |
25 | 57 | | |
26 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
27 | 63 | | |
28 | 64 | | |
29 | 65 | | |
30 | 66 | | |
31 | 67 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
36 | 71 | | |
37 | 72 | | |
38 | 73 | | |
| |||
0 commit comments