Commit 22de38a
fix(providers/standard): remove premature param value validation in HITLOperator
HITLOperator params are form fields filled by a human at runtime. Calling
`self.params.validate()` in `__init__` incorrectly validates param values at
DAG parse time, before any human input exists. This causes `ParamValidationError`
for any param without an explicit default value, breaking DAG import.
The fix removes `self.params.validate()` from `validate_params()`. Value
validation (type, required fields, schema) already happens correctly in
`validate_params_input()` after the human submits the form.
The `_options` key check is preserved — it is a structural constraint, not
a value check.
Closes #59551
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 0dc4d33 commit 22de38a
2 files changed
Lines changed: 59 additions & 24 deletions
File tree
- providers/standard
- src/airflow/providers/standard/operators
- tests/unit/standard/operators
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
150 | 156 | | |
151 | | - | |
| 157 | + | |
152 | 158 | | |
153 | | - | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| |||
Lines changed: 52 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
163 | 145 | | |
164 | 146 | | |
165 | 147 | | |
166 | 148 | | |
167 | 149 | | |
168 | 150 | | |
169 | 151 | | |
170 | | - | |
| 152 | + | |
171 | 153 | | |
172 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
173 | 203 | | |
174 | 204 | | |
175 | 205 | | |
| |||
0 commit comments