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

Implement new lutaml_data command to read *.{lml | yaml | json} LutaML files with LutaML data definitions #178

Open
Tracked by #444
ronaldtse opened this issue Jan 23, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

Part of:

Requires:

  • WIP

This task is to update the metanorma-lutaml-plugin gem to expose data that is defined using LutaML models via the .to_liquid method to a Liquid template given in Metanorma, through a command called lutaml_data (refer to how to implement lutaml_express).

The command will look like this:

(If data definitions and data instances are in the same file)

[lutaml_data,{lutaml_definition_file},{root},options={...}]
----
...
----

Or:
(If data definitions and data instances are in different files)

[lutaml_data,{lutaml_definition_file},{lutaml_data_instance_file),{root},options={...}]
----
...
----

e.g.

[lutaml_data,s102_data.lml,lml,options={...}]
----
{% for check in lml.S158Checks.checks %}

=== S-102 Validation Check `{{ check.dev_id }}`

dev_id: {{ check.dev_id }}

classification: {{ check.classification.description }}

check message: {{ check.check_message }}

check description: {{ check.check_description }}

check solution: {{ check.check_solution }}

{% endfor %}
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🌋 Urgent
Development

No branches or pull requests

2 participants