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

Allow custom scalars in value coercion #49

Closed
wants to merge 1 commit into from
Closed

Conversation

vektah
Copy link
Owner

@vektah vektah commented Jul 27, 2018

This PR drops Value.Value(), instead a variable bag with a user supplied scalar coercer must be specified.

This allows implementations to provide custom scalar types to be checked during validation.

if err != nil {
return val, err
}
fmt.Println("EV", elemVal, fmt.Sprintf("%#v", elemVal))
Copy link
Collaborator

Choose a reason for hiding this comment

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

💩

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 90.553% when pulling 1e2f694 on pluggable-coercion into b346265 on master.

@vektah
Copy link
Owner Author

vektah commented Jul 31, 2018

Closing in favour of #50

@vektah vektah closed this Jul 31, 2018
@vektah vektah deleted the pluggable-coercion branch July 31, 2018 13:46
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