-
Notifications
You must be signed in to change notification settings - Fork 5
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
Paths fail to match on Windows #8
Comments
Maybe pathlib globs would be more cross-platform than regex? |
... maybe. Some of the matchers use |
I started trying to fix this on top of the tests I added in #18, but found it was a lot of work to refactor all the strings to paths. I might be able to pick this back up later, but anyone is welcome to take a stab! |
I tried running
ocsf-validator
on a Windows system recently. I think there's an issue with the way paths are formed where they are not agnostic to the OS.The way this manifests is that files that should have inferred schema types do not, and the validator eventually fails:
It looks like on Windows, paths are formed with backslashes like
objects\user.json
whereas the regex matchers are expecting forward slashes e.g.".*objects/.*json"
.The text was updated successfully, but these errors were encountered: