nikku / node-xsd-schema-validator

A schema (XSD) validator for NodeJS
https://www.npmjs.com/package/xsd-schema-validator
MIT License
52 stars 24 forks source link

Not presenting expected errors #14

Closed Heucles closed 6 years ago

Heucles commented 6 years ago

When addged soap envelope, it stopped showing errors such as data type validation and invalid tags name or tags missing. What I did was, added this tag : <xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="soap-envelope.xsd"/> at the ".xsd" file and then is stoped presenting errors to me, is this a known berraviour?

nikku commented 6 years ago

This is related to https://github.com/nikku/node-xsd-schema-validator/issues/10.

Right now, we don't support external file includes, neither as part of the model, nor as part of the schema.

nikku commented 6 years ago

We support includes on schema level just fine. Would be interesting to get the complete XML you try to validate, plus the schema.