Commit 916cd85
openapi: address Gemini review findings (items 3-5)
- Sanitize operation name defensively in requestBody description:
replaceAll non-word/non-safe chars to '_'; Axis2 NCNames are already
safe but guards against malformed deployment descriptors (item 3)
- Replace fragile jsonSpec.length() > 3000 size assertion with
content-key checks ("openapi", "paths") in Http2OpenApiBasicTest (item 4)
- Add visible SKIPPED warning instead of silent return when
financial-api-schema.json is absent from classpath (item 5)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2e786f6 commit 916cd85
3 files changed
Lines changed: 13 additions & 3 deletions
File tree
- modules/openapi/src
- main/java/org/apache/axis2/openapi
- test/java/org/apache/axis2/openapi
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
426 | 430 | | |
427 | 431 | | |
428 | 432 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
485 | 489 | | |
486 | 490 | | |
487 | 491 | | |
| |||
0 commit comments