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

Custom primitive types for verifying a specific model of something #9

Closed
mtmr0x opened this issue Sep 12, 2018 · 0 comments
Closed
Labels
question Further information is requested
Milestone

Comments

@mtmr0x
Copy link
Owner

mtmr0x commented Sep 12, 2018

In discussion with my friend Hugo Bessa, we spoke about how could I make sure a ISO date would be always a ISO date and creating other types might not be a great idea but what about my primitive type be custom somehow?

Examples

Custom primitive number type

I know it's a number, but I can create rules for this number don't be greater than x or non-zero values

Custom primitive string type

It must be a string, but is a specific type of string, as a only numeric string or not having spaces, validated by a regex, for example.

@mtmr0x mtmr0x added the question Further information is requested label Sep 12, 2018
@mtmr0x mtmr0x added this to the 0.2.0 milestone Oct 3, 2018
@mtmr0x mtmr0x mentioned this issue Oct 4, 2018
5 tasks
@mtmr0x mtmr0x closed this as completed Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant