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

Handle import tags in schema #181

Closed
suleman-uzair opened this issue Nov 19, 2024 · 3 comments · Fixed by lutaml/lutaml-xsd#5
Closed

Handle import tags in schema #181

suleman-uzair opened this issue Nov 19, 2024 · 3 comments · Fixed by lutaml/lutaml-xsd#5

Comments

@suleman-uzair
Copy link
Member

suleman-uzair commented Nov 19, 2024

Handle imports in XSD schemas.

Originally posted by @ronaldtse in lutaml/lutaml-xsd#2 (review)

@suleman-uzair
Copy link
Member Author

@ronaldtse, do you have any thoughts on how to handle the imports?

  1. Import the schemas recursively?
    a. Import the schema or document from the input. If any imports exist within that schema or document, continue importing recursively.
  2. Handle like shale does, as discussed in Implement XSD parsing and lutaml-model generation functionality #37 (comment)

@ronaldtse
Copy link
Contributor

I think the xsd gem should have a functionality called "flatten" that unrolls the imports. Then the lutaml-model gem can directly import that XSD just once?

@suleman-uzair
Copy link
Member Author

I think the xsd gem should have a functionality called “flatten” that unrolls the imports. Then the lutaml-model gem can directly import that XSD just once?

@ronadltse, Sounds good.
I’ll start working on it right away and move back to XSD compiling functionality ( in Lutaml-Model ) once it’s finalized.

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 a pull request may close this issue.

2 participants