mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
yml-configuration with json schema validation #7144
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.