Commit 9970495
authored
fix(billing): Let backend handle dynamic validation (#103977)
Follow up to getsentry/getsentry#18924
Rather than duplicating validation for dynamically required fields on
both the frontend and backend, we will only handle validation for fields
required for all cases on both, and then handle validation for fields
conditionally required on the backend (displaying those errors on the
frontend on failed submission).
<img width="795" height="746" alt="Screenshot 2025-11-25 at 12 06 13 PM"
src="https://github.com/user-attachments/assets/bfac32fb-f78c-4b43-a0b4-7fb403c7734e"
/>1 parent 742439f commit 9970495
2 files changed
+18
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 193 | | |
199 | 194 | | |
200 | 195 | | |
201 | | - | |
| 196 | + | |
202 | 197 | | |
203 | 198 | | |
204 | 199 | | |
| |||
212 | 207 | | |
213 | 208 | | |
214 | 209 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 210 | | |
228 | 211 | | |
229 | 212 | | |
| |||
276 | 259 | | |
277 | 260 | | |
278 | 261 | | |
279 | | - | |
| 262 | + | |
280 | 263 | | |
281 | 264 | | |
282 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
196 | 207 | | |
197 | 208 | | |
198 | 209 | | |
199 | 210 | | |
200 | 211 | | |
201 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
202 | 216 | | |
203 | 217 | | |
204 | 218 | | |
| |||
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
222 | | - | |
| 236 | + | |
223 | 237 | | |
224 | 238 | | |
225 | 239 | | |
| |||
0 commit comments