This schemas can be used to validate Drupal 8+ yaml files.
Note: this may override your existing JSON Schema Mappings.
- Copy thge file jsonSchemas.xml to
.idea
directory in your PhpStorm project root. - Restart IDE
- Open
File | Settings | Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings
- Add the following schemas as needed
Name | Url | Pattern |
---|---|---|
Drupal info | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/info.yml.json |
*.info.yml |
Drupal layouts | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/layouts.yml.json |
*.layouts.yml |
Drupal libraries | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/schema/drupal/libraries.yml.json |
*.libraries.yml |
Drupal links (task) | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/links.task.yml.json |
*.links.task.yml |
Drupal links (menu) | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/links.menu.yml.json |
*.links.menu.yml |
Drupal links (contextual) | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/links.contextual.yml.json |
*.links.contextual.yml |
Drupal links (action) | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/links.action.yml.json |
*.links.action.yml |
Drupal permissions | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/permissions.yml.json |
*.permissions.yml |
Drupal routing | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/routing.yml.json |
*.routing.yml |
Drupal services | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/services.yml.json |
*.services.yml |
Drupal breakpoints | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/breakpoints.yml.json |
*.breakpoints.yml |
Drupal migrations | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/migration.yml.json |
*/migrations/*.yml , *.migration.*.yml |
Drupal configs schemas | https://raw.githubusercontent.com/5n00p4eg/Drupal-json-schemas/master/schema/drupal/schema.yml.json |
*/config/schema/*.schema.yml |
Drush site aliases | http://json.schemastore.org/drush.site.yml |
*/sites/*.site.yml |