You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the XML Schema defined in a file utilizes an URN value as opposed to a path or URL, validation against the schema currently fails. Reviewing the output of --help, as well as this repository's README.md, it does not appear there is any ability to specify a map value for URNs. This leaves us to be forced to pass -s and never perform XSD validation despite having an XML Schema to validate against.
Feature Request:
Support for URN mappings to specify the location of an XSD file when a given URN value is encountered.
Misc Note: It would be nice if this feature were introduced by implementing support for some sort of .xml-lint.xml configuration file (as a default value), or option to specify a configuration file in the command. This XML file could then contain multiple mappings in the event that a directory of XML files contains files that follow more than one XSD. As opposed to having to always know the URN value of an XML file prior to validation, and always having to then pass the appropriate path/url to the XSD for each and every file.
Final Thoughts:
The "misc note" above could in turn be expanded upon in future new features, so that users can configure their entire test suite (all files / directories to be scanned, files / directories to be ignored, etc). Doing so would then simplify CI efforts if someone wants to implement this XML linter into their automated code quality checks.
The text was updated successfully, but these errors were encountered:
Scenario:
If the XML Schema defined in a file utilizes an URN value as opposed to a path or URL, validation against the schema currently fails. Reviewing the output of
--help
, as well as this repository'sREADME.md
, it does not appear there is any ability to specify a map value for URNs. This leaves us to be forced to pass-s
and never perform XSD validation despite having an XML Schema to validate against.Feature Request:
Support for URN mappings to specify the location of an XSD file when a given URN value is encountered.
Misc Note: It would be nice if this feature were introduced by implementing support for some sort of
.xml-lint.xml
configuration file (as a default value), or option to specify a configuration file in the command. This XML file could then contain multiple mappings in the event that a directory of XML files contains files that follow more than one XSD. As opposed to having to always know the URN value of an XML file prior to validation, and always having to then pass the appropriate path/url to the XSD for each and every file.Final Thoughts:
The "misc note" above could in turn be expanded upon in future new features, so that users can configure their entire test suite (all files / directories to be scanned, files / directories to be ignored, etc). Doing so would then simplify CI efforts if someone wants to implement this XML linter into their automated code quality checks.
The text was updated successfully, but these errors were encountered: