IDE linter and autocomplete for Score's JSON schema
Reference documentation for the IDE linter and autocomplete for Score’s JSON schema.
less than a minute
With the introduction of the JSON schema for Score, developers can now benefit from linter and autocomplete functionalities in their Integrated Development Environments (IDEs). IDEs like Visual Studio Code, JetBrains IDEs, and others support JSON schema validation and autocomplete out of the box or with extensions like YAML for VS Code.
Configure your IDE
Consult your IDE or IDE’s extension for specific details on how to do this.
Generally, you need to add the following line to your IDE’s settings:
"json.schemas": [
{
"fileMatch": [
"score.yaml",
"score.yml"
],
"url": "https://raw.githubusercontent.com/score-spec/schema/score-v1b1.json"
}
]
For information on setting up autocompletion script for the shell, see Enable autocomplete for shell.