@@ -98,6 +98,27 @@ render as SVG::
98
98
99
99
$ schema-salad-tool --print-inheritance-dot myschema.yml | dot -Tsvg > myschema.svg
100
100
101
+ Codegen Examples
102
+ ----------------
103
+
104
+ These are helpful to see how to use the output of `schema-salad-tool --codegen `
105
+ in different languages for loading and/or creating/editing/saving objects,
106
+ using the `CWL v1.2 schema <https://github.com/common-workflow-language/cwl-v1.2/blob/1.2.1_proposed/CommonWorkflowLanguage.yml >`_
107
+ as an example.
108
+
109
+ +-------------+---------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
110
+ | Language | Repository | Serializaton Example | Deserialization Example |
111
+ +=============+=========================================================+======================================================================================================================================================+============================================================================================================================================================================+
112
+ | Python | https://github.com/common-workflow-language/cwl-utils/ | `create_cwl_from_objects.py <https://github.com/common-workflow-language/cwl-utils/blob/main/create_cwl_from_objects.py >`_ | `load_document() <https://github.com/common-workflow-language/cwl-utils/blob/main/cwl_utils/parser/__init__.py#L93 >`_ |
113
+ +-------------+---------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
114
+ | Java | https://github.com/common-workflow-language/cwljava/ | (Not yet implemented) | `PackedWorkflowClassTest.java <https://github.com/common-workflow-language/cwljava/blob/cwl-1.2.0/src/test/java/org/w3id/cwl/cwl1_2/utils/PackedWorkflowClassTest.java >`_ |
115
+ +-------------+---------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
116
+ | TypeScript | https://github.com/common-workflow-lab/cwl-ts-auto | `Creating, editing, and saving CWL docs with TypeScript <https://github.com/common-workflow-lab/cwl-ts-auto#creating-editing-and-saving-documents >`_ | `Loading CWL documents with TypeScript <https://github.com/common-workflow-lab/cwl-ts-auto#loading-documents >`_ |
117
+ +-------------+---------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
118
+ | .Net | https://github.com/common-workflow-lab/CWLDotNet | `Creating, editing, and saving CWL docs with .Net <https://github.com/common-workflow-lab/CWLDotNet#creating-editing-and-serializing-documents >`_ | `Loading CWL documents with .Net <https://github.com/common-workflow-lab/CWLDotNet#loading-documents >`_ |
119
+ +-------------+---------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
120
+ | C++ | https://github.com/common-workflow-lab/cwl-cpp-auto | `cwl_output_example.cpp <https://github.com/common-workflow-lab/cwl-cpp-auto/blob/main/cwl_output_example.cpp >`_ | (Not yet implemented) |
121
+ +-------------+---------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
101
122
102
123
Quick Start
103
124
-----------
0 commit comments