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

feat: support regex path type matching #532

Merged
merged 1 commit into from
Aug 2, 2021
Merged

feat: support regex path type matching #532

merged 1 commit into from
Aug 2, 2021

Conversation

noahnu
Copy link
Collaborator

@noahnu noahnu commented Aug 2, 2021

Description

Adds a regex flag to the path_type matcher.

Related Issues

@noahnu noahnu requested a review from iamogbz August 2, 2021 18:40
@codecov
Copy link

codecov bot commented Aug 2, 2021

Codecov Report

Merging #532 (bb77eb5) into master (29dcc0f) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #532   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines         1100      1105    +5     
=========================================
+ Hits          1100      1105    +5     

@noahnu noahnu merged commit 0ff4acf into master Aug 2, 2021
@noahnu noahnu deleted the feature/423 branch August 2, 2021 18:46
tophat-opensource-bot pushed a commit that referenced this pull request Aug 2, 2021
# [1.4.0](v1.3.1...v1.4.0) (2021-08-02)

### Features

* support regex path type matching ([#532](#532)) ([0ff4acf](0ff4acf))
@tophat-opensource-bot
Copy link
Contributor

🎉 This PR is included in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@@ -29,29 +30,35 @@ def path_type(
*,
types: Tuple["PropertyValueType", ...] = (),
strict: bool = True,
regex: bool = False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit. regex parameter might not have been needed since you can determine what kind of key was used i.e. plain string or regex object

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

Successfully merging this pull request may close these issues.

Enable paths for matchers to declare all elements of nested list
3 participants