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

Support independent request and response validation in Malli coercer #656

Closed
wants to merge 1 commit into from

Commits on Oct 30, 2023

  1. Add separate validation options to Malli coercer

    The motivation for this is adding a new API to a legacy service whose
    data model has evolved over the years. Maybe we cannot guarantee the
    presence of all fields that are considered mandatory now. Rather than
    blowing up when attempting to return legacy entries we may want to
    disable response validation.
    
    However, we do want to ensure *new* entries added to the system are
    valid, so we do not want to disable request validation.
    
    Retain the ability to turn off both request and response validation with
    a single setting for backwards compatibility.
    stig committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    f262daa View commit details
    Browse the repository at this point in the history