Follow these steps to set up JSON schema validation in VSCode for contributing to quotes.json
:
- Press
Ctrl+,
to open VSCode settings. - Search for
json
. - Ensure
JSON > Format
is enabled - Click
Edit in settings.json
underJSON: Schemas
. - Add the following schema configuration:
"json.schemas": [
{
"fileMatch": [
"*quotes.json"
],
"url": "https://raw.githubusercontent.com/Wizard1209/game-quote-inline-tgbot/main/quotes_schema.json"
},
]