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 ability to declare some attributes as loosly validated #145

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

thexa4
Copy link
Collaborator

@thexa4 thexa4 commented Aug 3, 2023

Allows skipping certain attributes when the loose argument is set.
Fixes #143

@codeclimate
Copy link

codeclimate bot commented Aug 7, 2023

Code Climate has analyzed commit d54c696 and detected 0 issues on this pull request.

View more on Code Climate.

Comment on lines +22 to +23
assert_pass '{"foo":{}}', loose: true
assert_fail '{"foo":{}}', loose: false
Copy link
Owner

Choose a reason for hiding this comment

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

Normally we'd also test the invariant that assert_pass both with loose true and false if bar is present, but I assume that was tested manually and works.

@SleeplessByte SleeplessByte merged commit 47f2565 into master Aug 7, 2023
1 check passed
@SleeplessByte SleeplessByte deleted the feature/inout-optional branch August 7, 2023 19:07
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.

Need a way to make certain links optional when validating input
2 participants