Commit ce85f59
fix: cap HTTP spec fetch at 10 MB; clarify sanitizeModuleName vs sanitizeIdent
- fetchSpecBytes: wrap resp.Body in io.LimitReader(10 MiB) before ReadAll
to prevent memory exhaustion from oversized or malicious spec URLs
- sanitizeModuleName: add comment explaining intentional PascalCase vs
snake_case difference relative to openapi.sanitizeIdent (service names
vs operation names follow different Mendix naming conventions)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 362e5ca commit ce85f59
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
774 | 776 | | |
775 | 777 | | |
776 | 778 | | |
| |||
823 | 825 | | |
824 | 826 | | |
825 | 827 | | |
826 | | - | |
| 828 | + | |
827 | 829 | | |
828 | 830 | | |
829 | 831 | | |
| |||
0 commit comments