Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No description for array of tables and its properties #278

Open
danez opened this issue Jul 8, 2022 · 3 comments
Open

No description for array of tables and its properties #278

danez opened this issue Jul 8, 2022 · 3 comments
Labels
bug Something isn't working needs investigation schema JSON-schema related issues

Comments

@danez
Copy link

danez commented Jul 8, 2022

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.

@tamasfe tamasfe added bug Something isn't working schema JSON-schema related issues needs investigation labels Jul 12, 2022
@ed-curran
Copy link

ed-curran commented Nov 23, 2022

I think this may be related to this: #355

@lucasfernog-crabnebula
Copy link

I'm also facing this issue.

@umnovI
Copy link

umnovI commented Apr 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs investigation schema JSON-schema related issues
Projects
None yet
Development

No branches or pull requests

5 participants