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: add basic type validator #327

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

d3adb5
Copy link

@d3adb5 d3adb5 commented Apr 30, 2024

Add a basic type validator, allowing to check if a value at a set path is of a given type, described as a string.

The valid type strings are the string representations of reflect.Type values. Some work can be done to make this more user-friendly, but for now, I believe it's a start.

Closes #325.

@d3adb5
Copy link
Author

d3adb5 commented May 3, 2024

@quintush Could I get a review on this pull request? Would love some feedback.

Add a basic type validator to the unittest package. This validator is
responsible for checking if a given path has a value of a specific type.
Update the list of assertions in the centralized documentation to
include the new `isType` assertion type.
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.

Feature: isType assertition
1 participant