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

Support relative schema path #192

Closed
wants to merge 1 commit into from
Closed

Conversation

jtyr
Copy link

@jtyr jtyr commented Feb 16, 2022

This PR is adding a check if the specified schema is actually a path to an existing file. Without this change, the schema cannot be find if the data path and the schema path combination doesn't produce an existing path to the schema. To demonstrate this, let's have this directory structure:

/dir1/data/myfile.yaml
/dir2/schemas/myfile.yaml

If we are in the /dir2 and we run Yamale, the schema is not found:

cd /dir2
yamale -s ./schemas/myfile.yaml /dir1/data/myfile.yaml

@mildebrandt
Copy link

Thanks! This may cause a breaking change to some use cases....I'll research a bit.

@jtyr
Copy link
Author

jtyr commented Feb 17, 2022

As you look into this, please could you also look into the other PR #171 I have create a while ago?

@cblakkan
Copy link
Member

This was fixed in another PR. Thanks for the contribution, sorry it took so long :)

@cblakkan cblakkan closed this Mar 20, 2024
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