An open API service indexing awesome lists of open source software.

https://github.com/konafets/statamic-blueprint-validation

Providing autocompletion and validation for Statamic Blueprints.
https://github.com/konafets/statamic-blueprint-validation

json-schema statamic statamic-v3 yaml

Last synced: 5 months ago
JSON representation

Providing autocompletion and validation for Statamic Blueprints.

Awesome Lists containing this project

README

          

# A JSON Schema for [Statamic](https://statamic.com/) Blueprint YAML files

## Introduction

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

![Example](assets/Demo.gif)

## 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](assets/setup.png)

## Sublime

TODO

## Visual Studio Code

TODO

## Credits

* Thanks [Jonas](https://github.com/jonassiewertsen) for providing a test blueprint