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

Add a Uint and Time checker. #10

Merged
merged 4 commits into from
Jan 19, 2016
Merged

Conversation

howbazaar
Copy link
Contributor

More schema Checkers. time.Time and Uint64.

(Review request: http://reviews.vapour.ws/r/3568/)

return nil, error_{"uint", v, path}
}
switch reflect.TypeOf(v).Kind() {
case reflect.Uint:
Copy link
Contributor

Choose a reason for hiding this comment

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

place these all on one line

case reflect.Uint, reflect.Uint8, ...:
return reflect.ValueOf(v).Uint(), nil

@howbazaar
Copy link
Contributor Author

$$merge$$

default:
return nil, error_{"uint", v, path}
}
return reflect.ValueOf(v).Uint(), nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this to line 79 please

howbazaar added a commit that referenced this pull request Jan 19, 2016
Add a Uint and Time checker.
@howbazaar howbazaar merged commit 47d9b10 into juju:master Jan 19, 2016
@howbazaar howbazaar deleted the bool-uint64 branch January 19, 2016 21:19
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.

2 participants