taplo icon indicating copy to clipboard operation
taplo copied to clipboard

No description for array of tables and its properties

Open danez opened this issue 3 years ago • 4 comments

I have the following schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "plugins": {
      "type": "array",
      "default": [{ "package": "" }],
      "items": {
        "type": "object",
        "title": "Build Plugins",
        "description": "Build Plugins extend the functionality of the build process",
        "properties": {
          "package": {
            "type": "string",
            "description": "Package name of the build plugin"
          },
          "input": {
            "type": "object",
            "description": "inputs"
          }
        }
      }
    }
  }
}

and the following toml file:

[[plugins]]

package = "asd"
[plugins.input]
X=1

In this case there is not description when I hover package or when selecting from possible values in the popup. the description only shows up when hovering the value "asd"

Also no description when hovering input.

danez avatar Jul 08 '22 13:07 danez

I think this may be related to this: https://github.com/tamasfe/taplo/issues/355

ed-curran avatar Nov 23 '22 14:11 ed-curran

I'm also facing this issue.

lucasfernog-crabnebula avatar Jan 15 '24 19:01 lucasfernog-crabnebula

I am facing the same issue with this schema https://github.com/umnovI/dioxus-config-schema/blob/main/dioxus.schema.json And this .toml file:

#:schema https://raw.githubusercontent.com/umnovI/dioxus-config-schema/main/dioxus.schema.json
# Docs: https://dioxuslabs.com/learn/0.5/CLI/configure

[application]

# App (Project) Name
name = "web-test"

# Dioxus App Default Platform
# desktop, web
default_platform = "web"

# `build` & `serve` dist path
out_dir = "dist"

# resource (assets) file folder
asset_dir = "assets"

[web.app]

# HTML title tag content
title = "web-test"

[web.watcher]

# when watcher trigger, regenerate the `index.html`
reload_html = true

# which files or dirs will be watcher monitoring
watch_path = ["src", "assets"]

# include `assets` in web platform
[web.resource]

# CSS style file

style = ["test"]

# Javascript code file
script = []

[web.resource.dev]

# Javascript code file
# serve: [dev-server] only
script = []

[[web.proxy]]

backend = "http://localhost:8000/api/"

Even tho I get autocomplete: image

And I can see description on the value itself: image

But hovering over backend or [[web.proxy]] shows nothing.

umnovI avatar Apr 02 '24 17:04 umnovI