This repository contains JSON schemas for Content Elements, Page Types and Record Types from the Content Blocks extension. Using them in your IDE allows for auto-completion and validation of your EditorInterface.yaml files.
https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/content-element.schema.json
**/ContentBlocks/ContentElements/*/EditorInterface.yaml
https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/page-type.schema.json
**/ContentBlocks/PageTypes/*/EditorInterface.yaml
https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/record-type.schema.json
**/ContentBlocks/RecordTypes/*/EditorInterface.yaml
settings.json
."yaml.schemas": {
"https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/content-element.schema.json" : ["**/ContentBlocks/ContentElements/*/EditorInterface.yaml"],
"https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/page-type.schema.json" : ["**/ContentBlocks/PageTypes/*/EditorInterface.yaml"],
"https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/record-type.schema.json" : ["**/ContentBlocks/RecordTypes/*/EditorInterface.yaml"]
}
A basic configuration.json looks like this
{
"explorer.confirmDelete": false,
"window.zoomLevel": 1,
"security.workspace.trust.untrustedFiles": "open",
"yaml.schemas": {
"https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/content-element.schema.json" : ["**/ContentBlocks/ContentElements/*/EditorInterface.yaml"],
"https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/page-type.schema.json" : ["**/ContentBlocks/PageTypes/*/EditorInterface.yaml"],
"https://raw.githubusercontent.com/nhovratov/content-blocks-json-schema/main/record-type.schema.json" : ["**/ContentBlocks/RecordTypes/*/EditorInterface.yaml"]
}
}