Skip to content

Add allowComments and allowTrailingCommas to https://opencode.ai/config.json JSON schema #2173

Closed

Description

@garrett-hopper

Using the VSCode JSON LSP from Nvim, there's no way to configure these settings when using a $schema in the file.

It would be convenient if these lines were added to https://opencode.ai/config.json

"allowComments": true,
"allowTrailingCommas": true

Current workaround is to create a ~/.config/opencode/schema.json file:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "https://opencode.ai/config.json",
  "allowComments": true,
  "allowTrailingCommas": true
}

and use "$schema": "file:///~/.config/opencode/schema.json" in all my opencode.jsonc files

Activity

  1. github-actions commented on Aug 22, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Aug 22, 2025

    @rekram1-node
    Collaborator

    Good callout I will add this

  3. self-assigned this
    on Aug 22, 2025
  4. garrett-hopper commented on Aug 23, 2025

    @garrett-hopper
    Author

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions