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

Unroll schema imports #5

Merged
merged 1 commit into from
Dec 31, 2024
Merged

Conversation

suleman-uzair
Copy link
Member

@suleman-uzair suleman-uzair commented Nov 21, 2024

This PR supports loading schema recursively from each import tag using the URL or path provided in the schemaLocation attribute.

closes lutaml/lutaml-model#181

Copy link
Member

@HassanAkbar HassanAkbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the PR looks good 👍

Comment on lines 50 to 51
separator = "/" unless schema_location&.start_with?("/") || location&.end_with?("/")
[location, schema_location].join(separator)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use File.join here,

Copy link
Contributor

@ronaldtse ronaldtse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suleman-uzair can you help address @HassanAkbar 's comment and we can merge this? Please also update the README. Thanks!

@suleman-uzair suleman-uzair changed the title [WIP] Unroll schema imports Unroll schema imports Dec 31, 2024
@suleman-uzair suleman-uzair marked this pull request as ready for review December 31, 2024 13:20
@suleman-uzair suleman-uzair force-pushed the feature/import_schema_flattened branch from 2630083 to 0f3b925 Compare December 31, 2024 13:24
@suleman-uzair suleman-uzair merged commit b36cfab into main Dec 31, 2024
14 checks passed
@suleman-uzair suleman-uzair deleted the feature/import_schema_flattened branch December 31, 2024 13:29
@suleman-uzair
Copy link
Member Author

Released version 1.0.0.

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 this pull request may close these issues.

Handle import tags in schema
3 participants