b0o / SchemaStore.nvim

🛍 JSON schemas for Neovim
https://schemastore.org
Apache License 2.0
726 stars 18 forks source link

add yaml support to https://json.schemastore.org/swagger-2.0.json #33

Closed aMOPel closed 4 months ago

aMOPel commented 4 months ago
            settings = {
                yaml = {
                    schemaStore = {
                        enable = false,
                        url = "",
                    },
                    schemas = vim.tbl_extend(
                        "force",
                        require("schemastore").yaml.schemas(),
                        {
                            ["https://json.schemastore.org/swagger-2.0.json"] = {
                                "swagger.json",
                                "swagger.yaml",
                            },
                        }
                    ),
                },
            },

I had to add "swagger.yaml" to the .yaml.schemas() map to get it to work in yaml files, too.

b0o commented 4 months ago

Hi, please open an issue or PR in the upstream SchemaStore repo.

The SchemaStore.nvim repo does not manage the schemas, it only consumes the catalog from upstream.

aMOPel commented 4 months ago

I'm sorry I thought in this repo you also map schemas to certain file patterns to activate the lsp on it.

But that also happens upstream, you're right.