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

It is validating against rules but not syntax. #6

Closed
gautam-jha opened this issue Jan 18, 2022 · 2 comments
Closed

It is validating against rules but not syntax. #6

gautam-jha opened this issue Jan 18, 2022 · 2 comments

Comments

@gautam-jha
Copy link

Hello,
I am using this in a project and noticed that it is validating against rules written only when XML is valid but considering reallife scenarios people make syntax error. but in that case it is returning undefined.

@amitguptagwl
Copy link
Member

@gautam-jha can you please share the sample code? In which scenario you feel error is not being thrown.

    it("Syntax error in rules XML data", async function(){
        assert.throws(() => {
            new Validator(errData);
        }, "Attribute '<name' is an invalid name.:9");
    });

@amitguptagwl
Copy link
Member

Closing as an old issue. Please reopen is you still find this issue.

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

No branches or pull requests

2 participants