Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update request transformer to do some validation logic #1631

Closed
stevehu opened this issue Feb 27, 2023 · 0 comments
Closed

update request transformer to do some validation logic #1631

stevehu opened this issue Feb 27, 2023 · 0 comments

Comments

@stevehu
Copy link
Contributor

stevehu commented Feb 27, 2023

While migrating the SAG gateway to the light gateway for one of our customers, we encounter some extra validations that are not standard. In order to avoid any consumer application change, we need to mimic these behaviours. The best place we can do that with maximum flexibility is the request transformer. We can ask the project team to create a transformer rule action class and plugin to the request/response chain to do the special validation. If any validation rule is failed, it will stop the chain and return an error message with the designated HTTP code to the consumer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant