Invalid completion for `metaobject` type schema settings
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 234
- Forks
- 92
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 6
Description
Describe the bug
On adding a metaobject schema setting in a section, for example, the default key is suggested.
On trying to upload a setting with this key, the CLI reports that default is not a valid attribute
Source
// sections/test.liquid
{% schema %}
{
"name": "Test",
"settings": [
{
"type": "metaobject",
"id": "test",
"label": "Test",
"metaobject_type": "test",
"default": "test"
}
]
}
{% endschema %}
Expected behaviour
default is not suggested as a key for metaobject schema settings
Actual behaviour
default is suggested as a key for metaobject schema settings
Debugging information
- OS: masOs
- OS Version: Sequoia 15.3.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the schema completion and CLI validation using the provided sections/test.liquid example. Trace the metaobject schema-setting completion and validation entry points, then verify that default is no longer suggested while valid attributes remain available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100