metanorma-plugin-lutaml 0.7.12 → 0.7.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +36 -0
- data/lib/metanorma/plugin/lutaml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0270f7d18a587b6569572dc7dc21fffe4e10939e32fe8ffcfa8e86888e1e772d
|
4
|
+
data.tar.gz: e1a826c03cbb78311eff5143b7ca41b9ce7e4a0ae0c55afd1fb31682ccec02b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12e9e15833fa38b735f7caae2c3e6686c65e42872a38303a866268d74510e16d7a2296107c146f539dff5b6183c65fc35e5bdbca460736594c2653edd7c2abe3
|
7
|
+
data.tar.gz: b09e732cdde35ab5da7638245480647fe543394509ed416fe8a9d09a2e3fec12620395210975b39428d7b986ad0268f45f7c6dfbe2a33b1d39cee990b052588f
|
data/README.adoc
CHANGED
@@ -394,6 +394,29 @@ The command accepts the options listed below:
|
|
394
394
|
`lib/metanorma/plugin/lutaml/templates`. This template can be customized by
|
395
395
|
changing the template path in the `template` option.
|
396
396
|
|
397
|
+
* `guidance="/path/to/my_guidance.yml"`specifies the path of
|
398
|
+
the yaml file of the guidance. (Optional)
|
399
|
+
|
400
|
+
The guidance file should be in the following format:
|
401
|
+
|
402
|
+
[source,yaml]
|
403
|
+
----
|
404
|
+
---
|
405
|
+
classes:
|
406
|
+
- name: Name Of Class
|
407
|
+
attributes:
|
408
|
+
- name: Name Of Attribute (e.g. gml:boundedBy)
|
409
|
+
used: false
|
410
|
+
guidance: |
|
411
|
+
Drop guidance message here.
|
412
|
+
...
|
413
|
+
----
|
414
|
+
|
415
|
+
If you want to define the guidance, you can define the `name` of the class
|
416
|
+
under `classes`. Then define which `attributes` you want to add guidance by the
|
417
|
+
`name`. Set `used` to show the attribute is used or not. Drop the message of
|
418
|
+
guidance in `guidance`.
|
419
|
+
|
397
420
|
=== Generating UML class and attributes: `lutaml_uml_class`
|
398
421
|
|
399
422
|
This command allows rendering a definition clause for a UML class.
|
@@ -853,6 +876,19 @@ By:
|
|
853
876
|
...
|
854
877
|
-----
|
855
878
|
|
879
|
+
You can define guidance in the configuration file as well. The configuration
|
880
|
+
file will looks like:
|
881
|
+
|
882
|
+
[source,yaml]
|
883
|
+
-----
|
884
|
+
packages:
|
885
|
+
- my_package
|
886
|
+
guidance: "path/to/guidance.yaml"
|
887
|
+
-----
|
888
|
+
|
889
|
+
Please refer to `lutaml_klass_table` section for how to configure the guidance
|
890
|
+
yaml file.
|
891
|
+
|
856
892
|
== Documentation
|
857
893
|
|
858
894
|
Please refer to https://www.metanorma.org.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plugin-lutaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|