-
Notifications
You must be signed in to change notification settings - Fork 41
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 type based matching #239
Comments
Lets break it down ... Currently the First thing to solve would probably be to extend the If we also add support for This doesn't solve your type issue, though. To only match the specific type, we could either add a new lookup, e.g. |
Thanks for the explanation. Can I help somehow? |
The At least we can start with that, and wait with other lookups to begin with. Though, I think not hashing should depend on the type of the value provided, e.g. if a list or dict is passed, then I think it's best to keep it hash dumped .. example So, might be possible to only adjust and enhance the hash method on JSON pattern 🤞 |
I was thinking that it would be useful to have typed based matching. One of the use cases would when app sends an generated uuid and all you care about is if the type is correct and doesn't really care about specific value.
ie.
This could be extended to other types like simple types, types from typing module, etc.
WDYT?
The text was updated successfully, but these errors were encountered: