Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable only output validation, not all validation #602

Open
Invertisment opened this issue Mar 24, 2023 · 0 comments
Open

Option to disable only output validation, not all validation #602

Invertisment opened this issue Mar 24, 2023 · 0 comments

Comments

@Invertisment
Copy link

Invertisment commented Mar 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant