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

FEAT: add 'NonWhiteSpaceString' to the default generated types #460

Merged

Conversation

stijnmoreels
Copy link
Member

Since we also have a String.IsNullOrWhiteSpace and this is used quite
a lot for guard assertions and validations; it seems logical to also
generate strings without whitespace characters.

Seems reasonable?

Thanks.

Since we also have a `String.IsNullOrWhiteSpace` and this is used quite
a lot for guard assertions and validations; it seems logical to also
generate strings without whitespace characters.
@ploeh
Copy link
Member

ploeh commented Nov 7, 2018

@stijnmoreels
Copy link
Member Author

stijnmoreels commented Nov 7, 2018

That method is evil and should be ignored.

I agree! Although, when deserializing to domain models and validating them; they sometimes could be seen as "the same".
But thanks @ploeh for the comment! If you rather would see that this PR is abbandoned; it's fine by me.

@ploeh
Copy link
Member

ploeh commented Nov 7, 2018

If you rather would see that this PR is abbandoned

No, I'll let @kurtschelfthout make that decision.

I now realise that my comment was insensitive. I apologise 😳

@stijnmoreels
Copy link
Member Author

I now realise that my comment was insensitive. I apologise 😳

No problem ;)

@kurtschelfthout
Copy link
Member

I think it’s a reasonable addition, and largely independent of the value or evilness :) of the String method?

@kurtschelfthout kurtschelfthout merged commit 7dfece5 into fscheck:master Nov 11, 2018
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.

3 participants