yml-configuration with json schema validation #7144

Open
opened 2026-01-22 15:45:30 +01:00 by admin · 1 comment
Owner

Originally created by @breitschopf on GitHub (May 3, 2023).

Hi,

yml-configurations were set to deprecated because of the lack of validation.

But actually yml-files can be validated, with the power of json-schemas.
E.g. OpenAPI relies on this.

It provides auto-completion and error detection.
In nearly each IDE (e.g. PhpStorm) it is possible to set a "JSON Schema Mapping" for yml files.

A mapping can be set for all *.dcm.yml files which ensures validation for all of these files.

And some common mappings are automatically applied by IDEs out of the box.

Yml-files with validation would be a big improvement in comparison to clumsy xml files.
Please take it under consideration.

Regards

Originally created by @breitschopf on GitHub (May 3, 2023). Hi, yml-configurations were set to deprecated because of the lack of validation. But actually yml-files can be validated, with the power of json-schemas. E.g. OpenAPI relies on this. It provides auto-completion and error detection. In nearly each IDE (e.g. PhpStorm) it is possible to set a "JSON Schema Mapping" for yml files. A mapping can be set for all *.dcm.yml files which ensures validation for all of these files. And some common mappings are automatically applied by IDEs out of the box. Yml-files with validation would be a big improvement in comparison to clumsy xml files. Please take it under consideration. Regards
Author
Owner

@derrabus commented on GitHub (May 3, 2023):

The lack of validation was not the only reason. Basically, we don't need two competing configuration file formats and dropping one of them makes the maintenance of this repository easier for us.

@derrabus commented on GitHub (May 3, 2023): The lack of validation was not the only reason. Basically, we don't need two competing configuration file formats and dropping one of them makes the maintenance of this repository easier for us.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7144