samuelcolvin / jinjahtml-vscode

Syntax highlighting for jinja(2) html templates in vscode
https://marketplace.visualstudio.com/items?itemName=samuelcolvin.jinjahtml
MIT License
135 stars 55 forks source link

Support for json schema in jinja-yaml #132

Open Lameorc opened 1 year ago

Lameorc commented 1 year ago

Hi!

I'm not sure how this can be accomplished and I'd be up for implementing it myself if you gave me some pointers but would it be possible to add some extra configuration so I can set json-schema for validating the yaml in jinja-yaml?

I think this can greatly extend the feature set of this extension and solve other issues like https://github.com/samuelcolvin/jinjahtml-vscode/issues/128 "for free".

Personally I'm using jinja templates to generate kubernetes resource definitions (which are in yaml) and I'd appreciate seeing if the underlying yaml is also valid. This could further help with autocompletions. The redhat yaml extension does support this, but unfortunately it doesn't support jinja...

mwright-fotokem commented 1 month ago

This would solve so many issues for me currently. I would love to be able to have jinja syntax highlighting along with the json schema support.