Skip to content

Commit

Permalink
Merge pull request #536 from Shopify/feature/better-input-settings-docs
Browse files Browse the repository at this point in the history
Add config/settings_schema.json JSON schema
  • Loading branch information
charlespwd authored Apr 9, 2024
2 parents 18bad38 + 3be3533 commit ee941ec
Show file tree
Hide file tree
Showing 14 changed files with 3,244 additions and 424 deletions.
22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"json.schemas": [
{
"fileMatch": [
"tests/fixtures/section-*.json"
],
"url": "./schemas/theme/section.json"
},
{
"fileMatch": [
"tests/fixtures/translations-*.json"
],
"url": "./schemas/theme/translations.json"
},
{
"fileMatch": [
"tests/fixtures/theme-settings-*.json"
],
"url": "./schemas/theme/theme_settings.json"
}
]
}
9 changes: 8 additions & 1 deletion schemas/manifest_theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
"fileMatch": ["sections/*.liquid"]
},
{
"uri": "theme/input_settings.json"
"uri": "theme/theme_settings.json",
"fileMatch": ["config/settings_schema.json"]
},
{
"uri": "theme/settings.json"
},
{
"uri": "theme/setting.json"
}
]
}
337 changes: 0 additions & 337 deletions schemas/theme/input_settings.json

This file was deleted.

6 changes: 2 additions & 4 deletions schemas/theme/section.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"maximum": 2
},
"settings": {
"description": "Section specific settings.",
"$ref": "./input_settings.json"
"$ref": "./settings.json"
},
"max_blocks": {
"type": "integer",
Expand All @@ -49,8 +48,7 @@
"description": "The block type."
},
"settings": {
"description": "Block settings.",
"$ref": "./input_settings.json"
"$ref": "./settings.json"
}
},
"if": {
Expand Down
Loading

0 comments on commit ee941ec

Please sign in to comment.