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

Stop yielding skip value #2341

Merged
merged 5 commits into from
Jun 26, 2023
Merged

Conversation

ericproulx
Copy link
Contributor

This PR will stop yielding skip value since iterators are already ignoring skip values.

Resolves #2329

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

This is a breaking change, but I fail to see how it can break someone 🤔 How was this a problem for your use-case?

At least we should add a paragraph to UPGRADING.

)
end
end

context 'when missing optional value' do
let(:params) { [Grape::DSL::Parameters::EmptyOptionalValue, 10] }

it 'marks params with skipped values' do
it 'doest not yield skipped values' do
Copy link
Member

Choose a reason for hiding this comment

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

typo: does not

@ericproulx
Copy link
Contributor Author

This is a breaking change, but I fail to see how it can break someone 🤔 How was this a problem for your use-case?

At least we should add a paragraph to UPGRADING.

I'm not sure its a breaking change. There's never been a validation done against a skip value. It's was always returned by base class when validating. I figured that why yield these values when it's actually returned automatically.

@dblock
Copy link
Member

dblock commented Jun 26, 2023

I'm not sure its a breaking change. There's never been a validation done against a skip value. It's was always returned by base class when validating. I figured that why yield these values when it's actually returned automatically.

I think you're right. I am going to YOLO it.

@dblock dblock merged commit db7000b into ruby-grape:master Jun 26, 2023
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.

Not yielding skipping value ?
2 participants