/acf-json-schema

ACF block json schema that extends the default WordPress schema.

Schemas

ACF block schema that extends the default WordPress block schema from https://github.com/WordPress/gutenberg/tree/trunk/schemas

JSON schemas are used by code editors to offer tooltips, autocomplete, and validation.

JSON schema usage

Many editors recognize the $schema property in JSON files.

Update your block.json to include:

{
	"$schema": "https://raw.githubusercontent.com/Levdbas/acf-json-schema/main/acf-blocks.json"
}

Visual Studio Code and PhpStorm are two popular editors that work out of the box. However, some editors require a plugin installed, and not all editors recognize the $schema property. Check your editor's documentation for details. Additionally, SchemaStore.org and JSON Schema have lists of editors known to have support if your current editor is unsupported.