Skip to content

Fix for RefResolutionError on Windows caused by backslashes in schema_dir #6

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

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

luukdobber
Copy link

On Windows, kubernetes-validate raises a RefResolutionError while trying to resolve the $ref's in schema files. This is caused by back slashes in the schema_dir path on Windows. Converting these back slashes to forward slashes resolves the error on Windows. I've also tested the change on macOs.

More about this issue: python-jsonschema/jsonschema#98 (comment)

@willthames willthames self-requested a review December 17, 2020 00:17
@luukdobber
Copy link
Author

Hi @willthames, could you take a look at this PR?

@willthames willthames merged commit f06373b into willthames:main Mar 24, 2021
@willthames
Copy link
Owner

Thanks @luukdobber, and apologies for the delay.

I'll get this released in the next day or two

@willthames
Copy link
Owner

This fix is in 1.20, just released to pypi

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.

3 participants