Fork me on GitHub
#yada
<
2018-06-27
>
danielcompton22:06:17

I've noticed that when an error occurs (like submitted form parameters not matching the schema), that an error is returned. This part is fine. The returned error was generated by an exception being thrown at process-request-body for a form-urlencoded body. As far as I can tell, if an exception is thrown, then any properties or authentication that were calculated on the context are stripped in the error page response. My use case is using Schema to validate submitted form values for a server side rendered page. Is there another way that I should be validating parameters so that I can hold onto the context in the error response?