qihaiyan commented on code in PR #6949:
URL: https://github.com/apache/apisix/pull/6949#discussion_r860950802
##########
apisix/plugins/api-breaker.lua:
##########
@@ -35,6 +35,13 @@ local schema = {
minimum = 200,
maximum = 599,
},
+ break_response_body = {
+ type = "string"
+ },
+ break_response_content_type = {
Review Comment:
I think the API owner should be responsible to configure route on the
apigageway correctly , it's part of the developing work, and only the API owner
knows what the correct Content-Type should be. If there's no way to config the
Content-Type correctly, when break state is open, the client APP used this API
may crash because of the unexpected Content-Type.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]