Skip to content
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

Merged
merged 2 commits into from
Sep 19, 2022

Conversation

gm0stache
Copy link
Contributor

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:

  • Bugfix
  • Feature
  • UI change (please include screenshot!)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Internationalization and localization
  • Other (please describe):

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:

  • Followed the code style guideline as described in CONTRIBUTING.md
  • Verified that the change work in Release build configuration
  • Checked all unit tests pass

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
Copy link
Collaborator

@veler veler left a 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!

@gm0stache
Copy link
Contributor Author

Hi Etienne!
Thanks so much for the fast review!
I addressed all of your remarks - hope you find everything as expected.
BR!

Copy link
Collaborator

@veler veler left a 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)

@veler veler merged commit ce252b1 into DevToys-app:main Sep 19, 2022
@veler veler linked an issue Sep 19, 2022 that may be closed by this pull request
@gm0stache gm0stache deleted the add-namespace-consistency-check branch September 20, 2022 16:30
veler pushed a commit that referenced this pull request Mar 31, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XML Validator not working
2 participants