You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/06/03 08:45:19 UTC

[GitHub] [incubator-apisix] sshniro opened a new issue #1643: request help: How to validate request in APISIX

sshniro opened a new issue #1643:
URL: https://github.com/apache/incubator-apisix/issues/1643


   ### Issue description
   I would like to validate requests before sending to up-streams, for example:
   
   ```
   header_data = {
     auth_header = {required}
   }
   body_data = {
     payload_1 = {required},
     payload_2 = {optional}
   }
   ```


----------------------------------------------------------------
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.

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



[GitHub] [incubator-apisix] membphis closed issue #1643: request help: How to validate request in APISIX

Posted by GitBox <gi...@apache.org>.
membphis closed issue #1643:
URL: https://github.com/apache/incubator-apisix/issues/1643


   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-apisix] membphis commented on issue #1643: request help: How to validate request in APISIX

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1643:
URL: https://github.com/apache/incubator-apisix/issues/1643#issuecomment-643594935


   `json-schema` is powerful enough for this feature.


----------------------------------------------------------------
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.

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



[GitHub] [incubator-apisix] moonming commented on issue #1643: request help: How to validate request in APISIX

Posted by GitBox <gi...@apache.org>.
moonming commented on issue #1643:
URL: https://github.com/apache/incubator-apisix/issues/1643#issuecomment-638738619


   @membphis can json-schema do this job?


----------------------------------------------------------------
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.

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



[GitHub] [incubator-apisix] sshniro commented on issue #1643: request help: How to validate request in APISIX

Posted by GitBox <gi...@apache.org>.
sshniro commented on issue #1643:
URL: https://github.com/apache/incubator-apisix/issues/1643#issuecomment-643683637


   Thanks, I have created a request validator plugin using the JSON schema validator. Please do have a look.


----------------------------------------------------------------
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.

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