b0o / SchemaStore.nvim

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

FHIR schema #29

Closed realtica closed 3 months ago

realtica commented 3 months ago

Hello, could you add FHIR R4 schema to the repo?

I've tried to add it locally, but it doesn't work :(

require("schemastore").json.schemas({
  extra = {
    {
      description = "FHIR JSON schema",
      fileMatch = "*.fhir.json",
      name = "fhir.json",
      url = "/home/me/fhir.schema.json",       -- or '/path/to/your/schema.json'
    },
  },
})

Also, I've moved to "extra" to jsonls config, and nothing happens..

b0o commented 3 months ago

Hello, could you add FHIR R4 schema to the repo?

We don't manage the catalog, we pull from the main SchemaStore repo. Please open an issue upstream: https://github.com/SchemaStore/schemastore/issues

I've tried to add it locally, but it doesn't work

It worked for me:

2024-04-03_13-29-33_region

Are you sure that your file has a matching extension? Try doing :lua vim.lsp.buf.hover() while your cursor is over a field in the json file, it should show documentation.