Commit fc03bdf
authored
fix: omit unset variables without defaults from Fleet API requests (#2980)
Previously, elastic-package would send null values for variables without
defaults, causing Fleet API validation errors for non-required URL-type
variables. This change modifies the variable handling to skip unset
variables that have no default values instead of including them as
nulls.
Fixes #29791 parent 93cfd84 commit fc03bdf
File tree
4 files changed
+32
-17
lines changed- internal
- packages
- archetype
- resources
- testrunner/runners/system
4 files changed
+32
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
315 | 319 | | |
316 | 320 | | |
317 | 321 | | |
318 | 322 | | |
319 | | - | |
| 323 | + | |
320 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
321 | 328 | | |
322 | 329 | | |
323 | 330 | | |
324 | 331 | | |
325 | | - | |
| 332 | + | |
326 | 333 | | |
327 | 334 | | |
328 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2049 | 2049 | | |
2050 | 2050 | | |
2051 | 2051 | | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
2055 | 2059 | | |
2056 | | - | |
| 2060 | + | |
2057 | 2061 | | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2058 | 2065 | | |
2059 | 2066 | | |
2060 | 2067 | | |
2061 | 2068 | | |
2062 | | - | |
| 2069 | + | |
2063 | 2070 | | |
2064 | 2071 | | |
2065 | 2072 | | |
| |||
0 commit comments