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

Adding the ability to perform strict validation. #865

Merged
merged 3 commits into from
Jan 7, 2016
Merged

Adding the ability to perform strict validation. #865

merged 3 commits into from
Jan 7, 2016

Conversation

mtdowling
Copy link
Member

This commit updates the JavaScript SDK to allow it to perform strict
validation client-side using the enum, min, max, and pattern traits.
Validating based on these traits are (and should be) an opt-in for
customers as overly strict client-side validation can cause unnecessary
inconvenience when a service team relaxes any validation constraints.
However, being able to perform strict validation would enable tooling
that utilizes the JavaScript SDK to have more confidence on whether or
not inputs and outputs match a service's model at a point in time.

Note that this commit does not switch the JS SDK over to using the
regular models without minification.

/cc @chrisradek @jeskew

This commit updates the JavaScript SDK to allow it to perform strict
validation client-side using the enum, min, max, and pattern traits.
Validating based on these traits are (and should be) an opt-in for
customers as overly strict client-side validation can cause unnecessary
inconvenience when a service team relaxes any validation constraints.
However, being able to perform strict validation would enable tooling
that utilizes the JavaScript SDK to have more confidence on whether or
not inputs and outputs match a service's model at a point in time.

Note that this commit does not switch the JS SDK over to using the
regular models without minification.
Updating the SDK to now validate min by default.
You can now provide a map to specify which opt-in validations to
perform, including allowing the ability to disable min validation.
@chrisradek
Copy link
Contributor

:shipit:

mtdowling added a commit that referenced this pull request Jan 7, 2016
Adding the ability to perform strict validation.
@mtdowling mtdowling merged commit 07e0bb8 into aws:master Jan 7, 2016
chrisradek added a commit that referenced this pull request Jan 12, 2016
@lock
Copy link

lock bot commented Sep 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants