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

allow empty config #1407

Closed
delanym opened this issue Nov 20, 2020 · 2 comments · Fixed by #1411
Closed

allow empty config #1407

delanym opened this issue Nov 20, 2020 · 2 comments · Fixed by #1411
Assignees
Labels
t/bug Something isn't working

Comments

@delanym
Copy link

delanym commented Nov 20, 2020

If I create an empty .spectral.yaml file, I get this weird error
Unexpected token u in JSON at position 0

@delanym delanym added the t/bug Something isn't working label Nov 20, 2020
@P0lip
Copy link
Contributor

P0lip commented Nov 30, 2020

Would you expect an error to be thrown? We can possibly do that, since the error you mention is indeed not particularly user friendly.

@delanym
Copy link
Author

delanym commented Nov 30, 2020

Maybe a warning saying the file is empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants