Coder Social home page Coder Social logo

drupal-json-schemas's Introduction

Drupal JSON schemas

This schemas can be used to validate Drupal 8+ yaml files.

Usage

PhpStorm (config file)

Note: this may override your existing JSON Schema Mappings.

  1. Copy thge file jsonSchemas.xml to .idea directory in your PhpStorm project root.
  2. Restart IDE

PhpStorm (manual)

  1. Open File | Settings | Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings
  2. 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

TODO:

  1. Add this schemas to schemastore.org issue
  2. Add schemas to Drupal coder issue
  3. Add schema mappings to PhpStorm via bundled Drupal support or other custom plugin.

drupal-json-schemas's People

Contributors

5n00p4eg avatar arnested avatar chi-teck avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.