Project

General

Profile

Actions

Task #92503

open

JSON Schemas for YAML configurations

Added by Jan Kiesewetter over 3 years ago. Updated about 1 year ago.

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

0%

Estimated time:
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/

Actions #1

Updated by Jan Kiesewetter over 3 years ago

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

Actions #2

Updated by Jan Kiesewetter over 3 years ago

Actions #3

Updated by Jan Kiesewetter over 3 years 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

Actions #4

Updated by Georg Ringer about 3 years ago

  • Status changed from New to Accepted
Actions #6

Updated by Jan Kiesewetter about 1 year ago

Just seen, the routing was just added to the schemastore repository!
https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/typo3.json

Actions

Also available in: Atom PDF