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 dry-validation contract support #238

Merged
merged 14 commits into from
Jul 25, 2019

Conversation

ryanwjackson
Copy link
Contributor

Fix #237

@pkuczynski Please let me know if there is anything missing or you would like changed.

@rdubya
Copy link
Contributor

rdubya commented Jul 16, 2019

👍 looks ok to me. Should probably fix up the code climate stuff though.

README.md Outdated Show resolved Hide resolved
@pkuczynski pkuczynski added this to the 2.0.1 milestone Jul 17, 2019
@ryanwjackson
Copy link
Contributor Author

@pkuczynski @rdubya which of these do you want me to address? https://codeclimate.com/github/railsconfig/config/pull/238#

For the nil check, any recommendations on how you would like this fixed?

Some minor updates
@@ -23,7 +24,8 @@ module Config
knockout_prefix: nil,
merge_nil_values: true,
overwrite_arrays: true,
merge_hash_arrays: false
merge_hash_arrays: false,
validation_contract: nil
Copy link
Member

@pkuczynski pkuczynski Jul 18, 2019

Choose a reason for hiding this comment

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

I am still wondering if we should call it validation_contract or simply contract. @pyromaniac @rdubya @supremebeing7 what you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm in favor of being explicit - validation_contract

@pkuczynski
Copy link
Member

@ryanwjackson would 67624d4 makes sense to you?

@ryanwjackson
Copy link
Contributor Author

@pkuczynski Makes sense. Just fixed the keyword passing.

@pkuczynski
Copy link
Member

Looks good to me. Waiting for tests to pass and I will merge it in!

pkuczynski
pkuczynski previously approved these changes Jul 25, 2019
@pkuczynski pkuczynski merged commit f2b8d2a into rubyconfig:master Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Update to use new dry-validation contracts
4 participants