taplo icon indicating copy to clipboard operation
taplo copied to clipboard

Can you set schema catalogs in config files?

Open SamB opened this issue 2 years ago • 3 comments

I couldn't find anything about this in the docs.

(Of course, I the doc structure is kind of hard to follow, especially on mobile where you don't get the top bar navigation...)

SamB avatar Aug 15 '23 16:08 SamB

I don't think you can use another schema catalog than https://www.schemastore.org/api/json/catalog.json at the moment. Do you have a use-case for this?

ia0 avatar Aug 15 '23 19:08 ia0

Hey @ia0 I have a use case. Consider this issue I encounter https://github.com/tamasfe/taplo/issues/460. I could've fixed it on my side if I could overwrite default definition.

evgenii-hb avatar Aug 17 '23 08:08 evgenii-hb

This would have been a possible workaround, but you can also overwrite the schema for just one file as described here in particular the schema directive at the top of the document.

ia0 avatar Aug 17 '23 08:08 ia0