You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "pavlenkodev (via GitHub)" <gi...@apache.org> on 2023/12/20 14:59:26 UTC

[I] help request: Rejected message for request-validation plugin [apisix]

pavlenkodev opened a new issue, #10678:
URL: https://github.com/apache/apisix/issues/10678

   ### Description
   
   In the request-validation plugin, you can add a rejected message using your own text. If you do not add your own text (rejected message), validation errors will be displayed.
   
   Is it possible to make my text (rejected message) output and the detected validation errors added to it?
   
   ### Environment
   
   APISIX version 3.5:
   etcd version 3.4.15
   APISIX Dashboard version 3.01


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "pavlenkodev (via GitHub)" <gi...@apache.org>.
pavlenkodev commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-2044410808

   I apologize for taking so long to answer your question. As I see possible extensions of this function.
   1. If possible, you can add a response format for the rejected message (json, text, xml etc) At the moment, the response in the case of rejected message is plain/text
   2. It is possible to organize validation errors into text that could be supplied using the keyword $errors, for example.
   ```
   rejected_msg : {myResponse : $errors}
   ```
   
   It seems to me that the proposed options will cover most of the rejected_msg use cases, if they can be implemented and if you like them


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "pavlenkodev (via GitHub)" <gi...@apache.org>.
pavlenkodev commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-2044413293

   > @pavlenkodev Hi, Do you have any examples of what is expected? For example, how to configure, input parameters, expected results
   
   I apologize for taking so long to answer your question. As I see possible extensions of this function.
   1. If possible, you can add a response format for the rejected message (json, text, xml etc) At the moment, the response in the case of rejected message is plain/text
   2. It is possible to organize validation errors into text that could be supplied using the keyword $errors, for example.
   ```
   rejected_msg : {myResponse : $errors}
   ```
   
   It seems to me that the proposed options will cover most of the rejected_msg use cases, if they can be implemented and if you like them


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop closed issue #10678: help request: Rejected message for request-validation plugin
URL: https://github.com/apache/apisix/issues/10678


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-1865407288

   This would perhaps require serverless plugin. @shreemaan-abhishek could advise a bit more.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "smileby (via GitHub)" <gi...@apache.org>.
smileby commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-1875134945

   @pavlenkodev  You can take a look at this
   https://apisix.apache.org/docs/apisix/building-apisix/


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-4010206626

   Closed due to prolonged lack of progress. If you're still interested in this feature, please let us know.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "pavlenkodev (via GitHub)" <gi...@apache.org>.
pavlenkodev commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-1867294562

   @shreemaan-abhishek Hello! Could you recommend something?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-1868193774

   I don't think this is possible, but it seems this can be simple to implement. @pavlenkodev would you like to contribute this?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "smileby (via GitHub)" <gi...@apache.org>.
smileby commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-1931098588

   @pavlenkodev Hi, Do you have any examples of what is expected?  For example, how to configure, input parameters, expected results


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Rejected message for request-validation plugin [apisix]

Posted by "pavlenkodev (via GitHub)" <gi...@apache.org>.
pavlenkodev commented on issue #10678:
URL: https://github.com/apache/apisix/issues/10678#issuecomment-1870059278

   Unfortunately, my knowledge of the lua language is not enough to implement this task.  Therefore, I cannot promise that I will do it. But maybe I'll try later. At the moment, you should not appoint me as a performer. I will let you know if I start completing the tasks
   
   Do you have a guide for deploying apisix locally somewhere?
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org