This is a proof of concept validating the TYPO3 site configuration.
- Open PhpStorm and switch to File > Preferences > Languages & Frameworks > Schemas and DTDs > JSON Schema Mappings
- Add a new entry with the following options
- Schema file or URL:
https://raw.githubusercontent.com/georgringer/site-config-validation/master/siteconfig.json
- File path Pattern:
**/sites/*/config.yaml
- Schema file or URL:
- Provide path to the directory containg the yaml files.
IMPORTANT: Currently I have troubles with validation having the schema remotely. I propose to clone the repository and define the path to the siteconfig.json file!
- Install the plugin "redhat.vscode-yaml"
- Open the settings and search for "yaml schemas" and open the
settings.json
. - Add the following config
"yaml.schemas": {
"https://raw.githubusercontent.com/georgringer/site-config-validation/master/siteconfig.json" : ["**/sites/*/config.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/georgringer/site-config-validation/master/siteconfig.json" : ["**/sites/*/config.yaml"],
}
}
TBD, I guess google should help
If you find validation useful, please support me:
- Patreon: Support me on patreon.com and get access to additional extensions and snippets as reward.
- PayPal: Support me by a donation on paypal.com. It is just one click away.
- Amazon Wishlist: Satisfy a wish of my Amazon wishlist.
- Finish site config
cd tests
npm install
npm test
Thanks to https://github.com/buildkite/pipeline-schema/ for inspiration