Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/levdbas/acf-json-schema
ACF block json schema that extends the default WordPress schema.
https://github.com/levdbas/acf-json-schema
acf json-schema wordpress
Last synced: 6 days ago
JSON representation
ACF block json schema that extends the default WordPress schema.
- Host: GitHub
- URL: https://github.com/levdbas/acf-json-schema
- Owner: Levdbas
- Created: 2023-04-11T18:21:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-11T18:37:28.000Z (over 1 year ago)
- Last Synced: 2024-10-10T00:40:56.235Z (27 days ago)
- Topics: acf, json-schema, wordpress
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```json
{
"$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](https://www.schemastore.org/) and [JSON Schema](https://json-schema.org/implementations.html#editors) have lists of editors known to have support if your current editor is unsupported.