Replies: 1 comment 2 replies
-
@ZimNovich Would you mind moving these questions to the GitHub Discussions for this repo? I'd like to keep the issues section dedicated to people reporting problems. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Thanks for this great module! I am using it on a JSON-RPC API backend for validation of incoming JSON payloads.
A request body payload is composed of two parts: the header and the nested params. It looks like the below:
I am receiving and processing these requests on the backend using endpoints like "/api/v2/posts", "/api/v2/posts", etc.
After extracting the payload from the request body, I validate this payload with a validation scheme like the one below:
If the payload passed the validation stage, I check the method field, extract the nested params field, sanitize it with another scheme and do all the further processing.
Now are the questions:
... and then validate the nested params field using some more specific params validation scheme?
Beta Was this translation helpful? Give feedback.
All reactions