Konafets / statamic-blueprint-validation

Providing autocompletion and validation for Statamic Blueprints.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A JSON Schema for Statamic Blueprint YAML files

Introduction

The schema supports all fieldtypes, their options and the validation rules.

Example

Setup

PhpStorm | IntelliJ

  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/Konafets/statamic-blueprint-validation/main/statamic.blueprint.schema.json
    • Directory: resources/blueprints

Example

Sublime

TODO

Visual Studio Code

TODO

Credits

  • Thanks Jonas for providing a test blueprint

About

Providing autocompletion and validation for Statamic Blueprints.

License:MIT License


Languages

Language:JavaScript 100.0%