Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DependencyInjection][Routing] Add JSON schema for validating and autocompleting YAML config files#61282

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:7.4fromnicolas-grekas:json-schema
Aug 22, 2025

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJul 31, 2025
edited
Loading

QA
Branch?7.4
Bug fix?no
New feature?yes
Deprecations?no
Issues#60572
LicenseMIT

Related to#59620
This provides autocompletion/validation on IDEs that support JSON schema for YAML files, such as phpStorm.

Note that this cannot support yaml tags, so no autocompletion after!service for example.
The only way to provide this would be to ship a language server. Out of reach I fear.

Recipe update atsymfony/recipes#1447

rvanlaak, skmedix, and ging-dev reacted with hooray emoji
@nicolas-grekas

This comment was marked as resolved.

@OskarStark
Copy link
Contributor

Little bit off topic, but what do you think about a JsonSchema component? we could also reuse this in symfony/ai

@GromNaN

This comment was marked as outdated.

@nicolas-grekas

This comment was marked as outdated.

@nicolas-grekas
Copy link
MemberAuthor

what do you think about a JsonSchema component

not mine to write, that typically the kind of stuff I'd rather outsource to another lib

OskarStark reacted with thumbs up emoji

@GromNaN

This comment was marked as resolved.

@nicolas-grekas

This comment was marked as resolved.

Copy link
Member

@HypeMCHypeMC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I've noticed a few issues while testing.

@nicolas-grekas
Copy link
MemberAuthor

PR updated.
Note that this cannot support yaml tags, so no autocompletion after!service for example.
The only way to provide this would be to ship a language server. Out of reach I fear.

Copy link
Member

@alexandre-dauboisalexandre-daubois left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Works really nicely, TIL JSON schemas can be used for YAML.

The Symfony extension is going to be retired 🙂

Image

skmedix reacted with rocket emoji
@fabpot
Copy link
Member

Thank you@nicolas-grekas.

fabpot added a commit that referenced this pull requestAug 31, 2025
… and autocompleting YAML config files (nicolas-grekas)This PR was merged into the 7.4 branch.Discussion----------[Serializer][Validator] Add JSON schema for validating and autocompleting YAML config files| Q             | A| ------------- | ---| Branch?       | 7.4| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Issues        | -| License       | MITSame as#61282 but for serialization and validation metadata.This provides autocompletion/validation on IDEs that support JSON schema for YAML files, such as phpStorm.We need to remember updating the serialization schema when context builders are updated.Commits-------f3ff89a [Serializer][Validator] Add JSON schema for validating and autocompleting YAML config files
This was referencedOct 27, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@GromNaNGromNaNGromNaN left review comments

@HypeMCHypeMCHypeMC left review comments

@fabpotfabpotfabpot approved these changes

@alexandre-dauboisalexandre-dauboisalexandre-daubois approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

7.4

Development

Successfully merging this pull request may close these issues.

7 participants

@nicolas-grekas@OskarStark@GromNaN@fabpot@alexandre-daubois@HypeMC@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp