-
Notifications
You must be signed in to change notification settings - Fork 9.4k
xsd validation fails on etc/adminhtml/system.xml files that contain comments below field items. #39148
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
Comments
Hi @gwharton. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @gwharton, Thanks for the report and collaboration! We are able to reproduce the issue in the latest 2.4-develop branch. Hence confirming the issue. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-12945 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
@magento give me 2.4-develop instance |
@magento I am working on this |
- fixed issue with adding string type
- the copyright information has been updated
Summary
xsd validation fails on
etc/adminhtml/system.xml
files that contain<comments>
below<field>
items.Examples
Launch PHPStorm and setup xsd validation, as per Magento devdocs.



Browse to a file containing a
<comment>
as a child to a<field>
. Theres plenty to choose fromCheck out the definition in the xsd file vendor/magento/module-config/etc/system_file.xsd
Notice that comment is not defined as a string.
Verify that on Experience League (https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/files/config-reference-systemxml), using
<comment>
as a child of<field>
is supported. It is used extensively throughout Magento backend.Proposed solution
Its an annoyance. Its been around for years. Its time to fix it.
Update type of comment to be string.
Release note
XSD validation now accepts
<comment>
entries as children of<field>
entries in system.xml config files.Triage and priority
The text was updated successfully, but these errors were encountered: