Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GromNaN opened this issue May 28, 2025 · 0 comments
Labels
DependencyInjection Help wanted Issues and PRs which are looking for volunteers to complete them. Routing

Comments

@GromNaN
Copy link
Member

GromNaN commented May 28, 2025

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:
    ...
@GromNaN GromNaN added the Help wanted Issues and PRs which are looking for volunteers to complete them. label May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DependencyInjection Help wanted Issues and PRs which are looking for volunteers to complete them. Routing
Projects
None yet
Development

No branches or pull requests

2 participants