Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection][Routing] Add JSON Schema for Services and Route definition #60572

Open
@GromNaN

Description

@GromNaN

Description

In order to provide a similar experience to developers writing service and route config files in Yaml, we can add a JSON-schema file. That would enable completion and validation in the IDE.

We will not hit the issue encountered in #59620 because the schema will be hand written.

Example

In config/services.yaml, add a link to the schema file to get it validated.

# $schema: ../vendor/symfony/dependency-injection/Loader/schema/dic/services/services.schema.json

parameters:
    ...

services:
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions