Skip to content

feat(schema): convert param 'when' to full extension req cond #751

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dhower-qc
Copy link
Collaborator

Needed to represent cross-extension conditions, rather than assuming
a parameter would only be dependent on the version of the defining
extension.

Comment on lines +213 to +218
next unless param.when.satisfied_by? do |when_ext_req|
in_scope_ext_reqs.any? do |in_scope_ext_req|
in_scope_ext_req.satisfying_versions.any? do |in_scope_ext_ver|
when_ext_req.satisfied_by?(in_scope_ext_ver)
end
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

given this code is exactly the same in the function above, there could be some refactoring here

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