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

Variable mapping: Allow In(:strict) #52

Open
apotonick opened this issue Feb 24, 2022 · 1 comment
Open

Variable mapping: Allow In(:strict) #52

apotonick opened this issue Feb 24, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@apotonick
Copy link
Member

When using In() => {:model => :internal_name} there's no implicit check if ctx[:model] was actually set for the incoming ctx.

Maybe a strict mode like

In(strict: true) => {:model => :internal_name}

would make :model a required keyword in the automatically created filter proc (although I don't know how to do this without meta-programming :brrrr:).

@apotonick apotonick added the enhancement New feature or request label Feb 24, 2022
@apotonick apotonick changed the title Allow In(:strict) Variable mapping: Allow In(:strict) Feb 24, 2022
@apotonick
Copy link
Member Author

The same for Out()! 🌞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant