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

Add ability to specify file format #7

Open
pareeohnos opened this issue Jun 5, 2019 · 0 comments
Open

Add ability to specify file format #7

pareeohnos opened this issue Jun 5, 2019 · 0 comments

Comments

@pareeohnos
Copy link

I'm writing an app which involves validating a user defined yaml file, however this file doesn't have a .yml extension. As a result, pajv is raising an exception about it having an unknown format.

The only workaround I can come up with at the moment, is to rename the file during processing to include the .yml extension but it feels like a major hack. It would be great if I could pass in a format option to specify that the file is yaml rather than only relying on the files extension.

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

No branches or pull requests

1 participant