-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Relative paths in tomlValidation
url
#322
Comments
Do you have a reference for JSON and/or YAML validation settings with relative paths? If so, we could copy their behaviour, otherwise I'm not sure what the relative paths should be based on. |
I am relatively certain that the relative paths are with respect to the extension install root i.e. where I think this is the piece of code you are looking for FYI we are already making use of |
Ah I see, makes perfect sense, thanks! It should be trivial to implement based on the referenced YAML extension code.
I'm glad, thanks! |
This enhancement would be very useful for us too (using extension.extensionUri when schema path is relative to ./) |
@tamasfe Do you take PR ? |
- science.toml not working due to bug in Taplo (tamasfe/taplo#322)
Any progress on this? |
) - Pointing toml validation to the pants directory - Created a JSON-schema on the fly - Working around tamasfe/taplo#322
The string that is being passed in
url
intomlValidation
needs to be a URI . Hence, using it with a relative path e.g."url": "./schema.json"
similar to how json and yaml validations can be passed will not work. Using a URL, as shown in the docs however will.The text was updated successfully, but these errors were encountered: