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

Conversation

stig
Copy link
Contributor

@stig stig commented Oct 13, 2023

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 stig force-pushed the disable-response-validation branch from 5267f76 to 7611561 Compare October 13, 2023 20:10
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 stig force-pushed the disable-response-validation branch from 7611561 to f262daa Compare October 30, 2023 10:44
@stig
Copy link
Contributor Author

stig commented Jan 8, 2024

I take the radio silence means "not interested". I'll close this, to get it off my list of Open PRs I need to check back on every week. Feel free to re-open if you decide you're interested.

@stig stig closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant