Commit 20fbf4c
committed
refactor(api): remove redundant createJobFetchTypeSchema union
The union of jobTypeSchema and createJobFetchTypeSchema was a no-op since
JOB_COMMANDS already includes fetch-one, fetch-ready, and fetch-all. Remove
both derived schemas and use jobTypeSchema as the single source of truth.
Update tests to expect INVALID_ENUM_VALUE (more precise) instead of
VALIDATION_ERROR for invalid type field inputs.1 parent f996c3d commit 20fbf4c
File tree
3 files changed
+8
-17
lines changed- api-server
3 files changed
+8
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 118 | | |
128 | 119 | | |
129 | 120 | | |
| |||
165 | 156 | | |
166 | 157 | | |
167 | 158 | | |
168 | | - | |
| 159 | + | |
169 | 160 | | |
170 | 161 | | |
171 | 162 | | |
| |||
191 | 182 | | |
192 | 183 | | |
193 | 184 | | |
194 | | - | |
| 185 | + | |
195 | 186 | | |
196 | 187 | | |
197 | 188 | | |
| |||
222 | 213 | | |
223 | 214 | | |
224 | 215 | | |
225 | | - | |
| 216 | + | |
226 | 217 | | |
227 | 218 | | |
228 | 219 | | |
| |||
0 commit comments