recyclarr / config-templates

Premade Configuration YAML Files for Recyclarr
MIT License
87 stars 26 forks source link

Map schema to YAML files in VS Code #29

Closed rcdailey closed 1 year ago

rcdailey commented 1 year ago

@yammes08 I'll let you merge, so you have time to look at it.

yammes08 commented 1 year ago

Does this negate the need to add the line to the top of each .yml file, or does that still need to be done as a follow-up action?

rcdailey commented 1 year ago

It negates the need. There's more than one way to add the schema.

The downside is, users that copy these templates won't have the schema set up by default. I really wanted that, but when I add that heading to the top line it exceeds the line length and I get failures in the yaml lint workflow. I'm not sure how to exclude that line from the length check.

At the very least, this change will provide you schema validation as you edit the templates, so it's something...