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: client validation #238

Merged
merged 4 commits into from
Nov 14, 2019

Conversation

QuentinBrosse
Copy link
Contributor

@QuentinBrosse QuentinBrosse commented Nov 14, 2019

The goal here is to have a basic but robust validation of the data given for the creation of a client.

We expose a ClientValidationError error that can be cached by users.

A more precise validation can be done by the user before the NewClient call (example).

scw/client_option.go Outdated Show resolved Hide resolved
scw/client_option.go Outdated Show resolved Hide resolved
scw/client_option.go Outdated Show resolved Hide resolved
scw/client_option.go Outdated Show resolved Hide resolved
scw/locality_test.go Show resolved Hide resolved
scw/errors.go Outdated Show resolved Hide resolved
scw/client_option.go Outdated Show resolved Hide resolved
kindermoumoute
kindermoumoute previously approved these changes Nov 14, 2019
Copy link
Contributor

@kindermoumoute kindermoumoute left a comment

Choose a reason for hiding this comment

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

LGTM

@QuentinBrosse QuentinBrosse merged commit 8574146 into scaleway:master Nov 14, 2019
@QuentinBrosse QuentinBrosse deleted the client-validation-rework branch November 29, 2019 14:02
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.

4 participants