google / yamlfmt

An extensible command line tool or library to format yaml files.
Apache License 2.0
1.2k stars 48 forks source link

Json schema is not valid #201

Closed serpro69 closed 3 months ago

serpro69 commented 3 months ago

Tried to use the schema via https://github.com/redhat-developer/yaml-language-server and getting the following error:

image

thiagowfx commented 3 months ago

In the future, please paste the original file as text.

Thanks for the heads-up, I sent a PR that should fix it.

PS. In your example, you probably want:

formatter:
  indent: 2
serpro69 commented 3 months ago

Hi @thiagowfx , First, thanks for the fix :) I can confirm it's working fine now.

Yes, the formatter key was missing in the screenshot, I've fixed that, but since that didn't affect the root cause of the issue - I didn't think it was relevant to update the description. I also didn't consider including the config as text since it didn't include anything apart from the reference to the schema file in this repo.

Cheers