nikku / node-xsd-schema-validator

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

Cannot expand a complex type to more than 5K nodes #44

Open lothemar opened 3 months ago

lothemar commented 3 months ago

Describe the Bug

When parsing my schema, I get "[fatal] Current configuration of the parser doesn't allow the expansion of a content model for a complex type to contain more than 5,000 nodes."

Steps to Reproduce

Expected Behavior

I should be able to parse my schema by editing a flag to allow more than 5k nodes

nikku commented 3 months ago

Agreed that this should be possible, but who uses a complex type with 5000 nodes? :see_no_evil:

lothemar commented 3 months ago

The European Commission's CBAM XSD definition for generated CBAM reports

Sadly not up to me :(

nikku commented 3 months ago

Understood. I support Europe, so let's investigate how we make Java validate an example diagram. Can you file a test case that breaks the library? We'd need a valid CBAM report + the XSD schema you use (which should be public?).