This schemas can be used to validate Drupal 8+ yaml files.
File |
Status |
*.info.yml |
yes |
*.layouts.yml |
yes |
*.libraries.yml |
yes |
*.breakpoints.yml |
yes |
*.schema.yml |
yes |
*.routing.yml |
yes |
*.services.yml |
yes |
*.links.action.yml |
yes |
*.links.contextual.yml |
yes |
*.links.menu.yml |
yes |
*.links.task.yml |
yes |
*.permissions.yml |
yes |
*/migrations/*.yml |
yes |
Project/File |
Status |
Drush (9.x+) yml files |
To-do |
migrate_plus |
yes |
- Add this schemas to schemastore.org issue
- Add schemas to Drupal core issue
- Add schema mappings to PhpStorm via bundled Drupal support or other custom plugin.
Note: this may override your existing JSON Schema Mappings.
- Put file jsonSchemas.xml inside of .idea dir in your PhpStorm project dir.
- Restart IDE
- Open
File | Settings | Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings
- Add 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 |