swagger-codegen-generators icon indicating copy to clipboard operation
swagger-codegen-generators copied to clipboard

Python generated code: Delete API Requests can be blocked in API Gateways when sends empty body

Open ShemTovYosef opened this issue 3 months ago • 0 comments

API Request for DELETE should not send anything by default; the current behavior sends an empty body send: b'{}' reply: 'HTTP/1.1 403 Forbidden\r\n'

Need to set {} to None https://github.com/swagger-api/swagger-codegen-generators/blob/39a2bcd51eb9acf81ee0a7dc23d7cd1059c0c957/src/main/resources/handlebars/python/rest.mustache#L150

ShemTovYosef avatar Nov 02 '25 10:11 ShemTovYosef