-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: support namespace analysis #662
feat: support namespace analysis #662
Conversation
The "XML Validator" tool is now able to detect inconsistencies in XML namespace references for both the XML and the XSD data. This capability will prevent "always true" validation cases potentially caused by validating XML data without the correct namespace scopes. Refs: DevToys-app#604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Thank you for this PR! It looks great overall 😁
A few comments here and there to address, and we can merge it 😊
Thanks a lot again!
src/dev/impl/DevToys/ViewModels/Tools/Text/XmlValidator/NamespaceHelper.cs
Outdated
Show resolved
Hide resolved
src/dev/impl/DevToys/ViewModels/Tools/Text/XmlValidator/NamespaceHelper.cs
Outdated
Show resolved
Hide resolved
src/dev/impl/DevToys/ViewModels/Tools/Text/XmlValidator/NamespaceHelper.cs
Outdated
Show resolved
Hide resolved
src/dev/impl/DevToys/ViewModels/Tools/Text/XmlValidator/NamespaceHelper.cs
Outdated
Show resolved
Hide resolved
src/dev/impl/DevToys/ViewModels/Tools/Text/XmlValidator/Parsing/XsdParser.cs
Outdated
Show resolved
Hide resolved
Hi Etienne! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thank you so much for addressing this feedback :D
I will merge the changes. Thank you for your contribution !
An update (1.0.10.0) is schedule to be released tomorrow. It won't include your changes though. They will go into the next update (likely 1.0.11.0)
* feat: support namespace analysis The "XML Validator" tool is now able to detect inconsistencies in XML namespace references for both the XML and the XSD data. This capability will prevent "always true" validation cases potentially caused by validating XML data without the correct namespace scopes. Refs: #604 * fix: apply MR feedback
The "XML Validator" tool is now able to detect inconsistencies in XML namespace references for both the XML and the XSD data.
This capability will prevent "always true" validation cases potentially caused by validating XML data without the correct namespace scopes.
Refs: #604
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: #604
What is the new behavior?
The tool is now able to detect unreflected namespace reference and issue an according warning.
Example: The XML data defines a "xmlns" namespace not defined in the XSD => result of the data validation will always be 'valid', a warning is ejected.
Other information
Quality check
Before creating this PR, have you: