Skip to content

georgringer/typo3-json-schemas

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Validating site config of #TYPO3

PayPal

This is a proof of concept validating the TYPO3 site configuration.

Example

Setup

PhpStorm

  1. Open PhpStorm and switch to File > Preferences > Languages & Frameworks > Schemas and DTDs > JSON Schema Mappings
  2. 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
  3. 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!

Visual Studio Code

  1. Install the plugin "redhat.vscode-yaml"
  2. Open the settings and search for "yaml schemas" and open the settings.json.
  3. 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"],
    }
}

Setup PhpStorm

All other IDEs

TBD, I guess google should help

Say thanks

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.

Next steps

  1. Finish site config

Testing

cd tests
npm install
npm test

Thanks to https://github.com/buildkite/pipeline-schema/ for inspiration