Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Cleanup: Validate primitive types#496

Merged
JustinBeckwith merged 1 commit intomrschmidt-cleanupfrom
mrschmidt-basictypes
Jan 14, 2019
Merged

Cleanup: Validate primitive types#496
JustinBeckwith merged 1 commit intomrschmidt-cleanupfrom
mrschmidt-basictypes

Conversation

@schmidt-sebastian
Copy link
Copy Markdown
Contributor

@schmidt-sebastian schmidt-sebastian commented Dec 27, 2018

This is part of #512 but can be reviewed independently.

This PR adds free-standing methods for the validation of simple types, such as boolean and strings. It uses an function argument to allow for optional values, instead of encoding this behavior in the method name (isOptionalString becomes validateString(..., { optional: true ).

The unused methods are removed in a follow-up PR.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 27, 2018
@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt-basictypes branch 7 times, most recently from f54b223 to bcee9ba Compare December 28, 2018 20:58
@JustinBeckwith JustinBeckwith merged commit e6f7d78 into mrschmidt-cleanup Jan 14, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-basictypes branch March 11, 2019 03:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants