- Newest
- Most votes
- Most comments
This limitation might not be directly related to the Swagger export itself but could be part of a logging or event handling system within your environment or the API Gateway's management console. If the UI is causing issues due to this limitation, consider using the API Gateway's CLI or SDKs to export your Swagger documentation.
According to the AWS documentation, API Gateway has a limit of 45KB on the size of events.
A few things you can try:
Simplify your API documentation by removing unnecessary details or examples to reduce the file size. API Gateway supports documentation inheritance which allows defining strings once and reusing them, which can help reduce size.
Export the documentation without including examples by setting the examples=false parameter in the export request. This will exclude example values from the exported file.
Break up your documentation into smaller versions or modules if possible to stay within the event size limit for individual exports. You can then download the pieces separately.
Check if your API Gateway usage and limits allow increasing the event size quota. Some AWS accounts have higher limits that can be requested.
As a last resort, programmatically export the documentation using the API Gateway APIs or SDKs to have more control over the export process and response handling compared to the console download
Relevant content
- asked 2 years ago
- asked 8 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 4 months ago
I'd suggest using the "Feedback" link on the Console page to report this, and include that error message. That report will go directly to the team which owns that page.