pavlenkodev opened a new issue, #10367:
URL: https://github.com/apache/apisix/issues/10367
### Description
Hello everyone I have a problem with the request-validation plugin. Custom
rejected_msg cannot be displayed. I
used my message in rejected_msg, but the standard ones are displayed. I also
tried to use rejected_code, but the standard - 400 is always used.
Example of my route
` "request-validation": {
"body_schema": {
"additionalProperties": false,
"properties": {
"age": {
"maximum": 2,
"minimum": 1,
"type": "integer"
},
"is_active": {
"type": "boolean"
},
"lastname": {
"type": "string"
},
"name": {
"type": "string"
}
},
"rejected_code": 418,
"rejected_msg": "JSON",
"type": "object"
}
}`
The message I get in the APISIX log when executing a request using the
plugin I attached above:

Tell me, please, am I misconfigured the plugin or is it a bug?
### Environment
- APISIX version 3.5.0-debian
- etcd version etcd:3.4.15
- APISIX Dashboard version 3.0.1-alpine
--
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]