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

Converting an .xsd file that uses a type from another .xsd file? #569

Open
andrew-otiv opened this issue May 10, 2024 · 0 comments
Open

Comments

@andrew-otiv
Copy link

I have xsd files that use types defined in other xsd files, and I would like to generate (also inter-dependent) proto files for them.

schema2proto only takes a single xsd file on the command line.

I hit an undefined type error for the types that are defined outside the xsd file that was passed to schema2proto:
"[main] ERROR no.entur.schema2proto.generateproto.SchemaParser - undefined simple or complex type ..."

I verified using strace that schema2proto isn't attempting to load the other xsd files that contain the required types.

I tried setting --customImportLocations and --customImports, but that didn't change the xsd schema parsing behavior.

Is schema2proto capable of converting xsd files that depend on types defined in other .xsd files, and if so, how do I configure schema2proto to find the relevant files?

Thanks!

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

1 participant