Skip to content

[DX][Config] Generate JSON schema for Yaml configuration #59603

Open
@GromNaN

Description

@GromNaN

Description

IDE like PHPStorm have a great support for Yaml validation against a JSON schema.

Code completion
For example, you can use code completion for YAML documents that have the JSON schema, or you can complete anchor aliases.

The idea is to generate a schema.json from all the allowed configuration.

Example

I created a JSON schema manually for Yaml files and this was a pleasant experience to have autocompletion and errors directly highlighted in PHPStorm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfigDXDX = Developer eXperience (anything that improves the experience of using Symfony)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions