Commit 7604e0e
Doug Borg
fix: improve error message for missing operationId
Address review feedback by making the error message more helpful when
operationId and path_name are both missing. The error now includes:
- Operation summary (if present)
- HTTP operation (get, post, etc.)
- Path name value
This helps developers quickly identify which operation in their OpenAPI
spec needs to be fixed.
Also adds test coverage to verify the improved error message includes
all expected details.1 parent 9f0b5a4 commit 7604e0e
File tree
2 files changed
+22
-1
lines changed- src/openapi_python_generator/language_converters/python
- tests
2 files changed
+22
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
0 commit comments