Skip to content

group suggested in wrong place when building a select schema setting #730

Open
@david-w-shopify

Description

@david-w-shopify

Describe the bug
When building a select setting in a section/block schema, the group key is surfaced in intellisense at the root setting level, instead of the option level, where it is valid.

Just to make sure, I tried adding group to the root of the setting and got an error from the CLI.

Source

{% schema %}
{
  "name": "Section",
  "settings": [
    {
      "type": "select"
      "id": "select",
      "label": "Select",
      "" // group is suggested here
      "options": [
        {
          "label": "Option",
          "value": "option",
          "" // group is not suggested here
        }
      ]
    }
  ]
}
{% endschema %}

Expected behaviour
group key is not suggested when I try to add a property at the same level as "label": "Select", and is suggested when I try to add a property at the same level as "value": "option".

Actual behaviour
Image

Image

Debugging information

  • OS: Mac
  • OS Version: Sequoia 15.2
  • Extension Version: 3.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSEV-3Normal Severity

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions