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

Introduce has_key? for user context #24

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

emfy0
Copy link
Contributor

@emfy0 emfy0 commented Oct 17, 2024

No description provided.

@emfy0 emfy0 force-pushed the introduce-has_key-for-user-context branch from 1597e43 to 5ffff4d Compare October 17, 2024 18:32
Copy link
Owner

@EugZol EugZol left a comment

Choose a reason for hiding this comment

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

Additionally, update VERSION to 4.1.0

README.md Outdated
@@ -1547,6 +1547,18 @@ schema.with_context(five: 15).(nil)
# => Datacaster::ValidResult(nil)
```

Helper method `has_key?` is available, it can be used to search through existing context keys.
Copy link
Owner

Choose a reason for hiding this comment

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

Method has_key? could be used to determine whether key is available in the context

@emfy0 emfy0 force-pushed the introduce-has_key-for-user-context branch from 2978d7e to de937b8 Compare October 17, 2024 18:51
@EugZol EugZol merged commit 7fb827f into EugZol:master Oct 17, 2024
3 checks passed
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