huma icon indicating copy to clipboard operation
huma copied to clipboard

Accessing validation results in the request pipeline

Open guneyizol opened this issue 1 month ago • 1 comments

Hi,

Is there a way to access the validation results in the downstream middlewares and/or handlers in the request pipeline before returning a response? I am happy with the built-in validation but I want to access and process the successfully validated fields and return http.StatusOK if there are any. (If this approach is not really compliant with the HTTP semantics, please let me know.)

What I am ultimately trying is to validate an input json object with possibly many fields and process all of the valid ones and let the user know which ones are successfully processed and which ones are not.

Thank you very much 🙏

guneyizol avatar May 27 '24 06:05 guneyizol