You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I go to reitit.coercion.malli and create my coercion middleware then I can pass :validate option which would enable the validation on input and output of the endpoints.
But if I'd want to only disable it for output and still include it in the Swagger spec I can't do it.
I think it would be a good idea to have the :validate option to not use a boolean but instead have it as a map:
:validate {:encode true, :decode true}
What do you think?
It would also be good to expose it as a map from calling create function and not hacking through by copying the code.
The text was updated successfully, but these errors were encountered:
If I go to
reitit.coercion.malli
and create my coercion middleware then I can pass:validate
option which would enable the validation on input and output of the endpoints.But if I'd want to only disable it for output and still include it in the Swagger spec I can't do it.
I think it would be a good idea to have the
:validate
option to not use a boolean but instead have it as a map:What do you think?
It would also be good to expose it as a map from calling
create
function and not hacking through by copying the code.The text was updated successfully, but these errors were encountered: