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

Create/use lutaml-path (something like object path, VPath, XPath but for lutaml-model) #173

Open
HassanAkbar opened this issue Nov 19, 2024 · 3 comments
Assignees

Comments

@HassanAkbar
Copy link
Member

No description provided.

@HassanAkbar HassanAkbar self-assigned this Nov 19, 2024
@HassanAkbar
Copy link
Member Author

@ronaldtse From what I understand we need to support something like what xpath does i.e lutaml_model_instance.model_path(<expression>).

Is this correct?

@ronaldtse
Copy link
Contributor

Yes, that's correct. What we are doing in root_mappings / child_mappings is like that:

    map_root to: :units, root_mappings: { id: :key, name: %w[root_units enumerated_root_units] }

i.e. root_units enumerated_root_units => in YAML input.root_units.enumerated_root_units.

We need to think about it.

@ronaldtse
Copy link
Contributor

We have a gem for lutaml-path.

We need a specification for lutaml-path and to extend it.

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

2 participants