Task #92503

JSON Schemas for YAML configurations

Added by Jan Kiesewetter 20 days ago. Updated 18 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-10-07
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Common IDEs and code editors support JSON schema to validate YAML files.
With a JSON schema for YAML configurations shipped by the core extensions, the configuration would be much easier.
Such schemas brings for example:
  • Auto completion
  • Tooltips
  • Validation
Configurations that should have a schema:
  • Site configuration
  • Form configuration
  • RTE configuration

See:
https://www.schemastore.org/json/

History

#1 Updated by Jan Kiesewetter 19 days ago

Georg Ringer created a POC of the site configuration schema:
https://github.com/georgringer/site-config-validation

#2 Updated by Jan Kiesewetter 18 days ago

#3 Updated by Jan Kiesewetter 18 days ago

For automatic discovery of the schema files, they must be added to the catalog https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json

Also available in: Atom PDF