Currently using Faraday to do some http request to certain api. I want to validate the body and header at step of .post
. However, when calling the .post
the information is initialize and send asynchronously. (I did receive the Json schema validation from the API receiver side)
So! I was wondering if it is possible to setup a schema validation at the step of .post
I am able to use the Faraday_Middleware using the def call
to intercept, but was it possible to turn the request into Json form and validate them?
Aucun commentaire:
Enregistrer un commentaire