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

Nesting the result and the output type into ValidatingProperty. #443

Merged
merged 3 commits into from
Jun 21, 2017

Conversation

andersio
Copy link
Member

Checklist

  • Updated CHANGELOG.md.

@andersio
Copy link
Member Author

Note that ValidatorOutput is renamed to be Decision.

case valid
/// Represents a decision of a validator of a validating property made on a
/// proposed value.
public enum Decision {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you feel about Status?

Copy link
Member Author

@andersio andersio Jun 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a result of an aggressive action, while status is passive state of a matter. Output is still a choice, but it felt too generic for me. We can also revert to ValidatorOutput.

@andersio andersio modified the milestone: 2.0 Jun 11, 2017
@mdiep
Copy link
Contributor

mdiep commented Jun 20, 2017

I don't love Decision, but no better options come to mind.

@mdiep mdiep merged commit d635059 into master Jun 21, 2017
@mdiep mdiep deleted the nesting-validating-prop branch June 21, 2017 02:13
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.

None yet

3 participants