composer icon indicating copy to clipboard operation
composer copied to clipboard

Code View should allow YAML representation

Open mattions opened this issue 8 years ago • 2 comments

Right now the code view shows only JSON representation.

It seems the community is preferring YAML, especially for CWL-1 representation.

Would be possibile to have the code view to show YAML directly, or have a possibility to pick YAML or JSON?

mattions avatar Nov 01 '17 14:11 mattions

Local tools and workflows which have the extension .cwl are always treated as YAML. Tools and workflows saved to a SevenBridges platform are treated as JSON because that is the format in which the platform will always return the apps.

mayacoda avatar Nov 20 '17 11:11 mayacoda

One related suggestion: For defining parameters currently the syntax - id: parmeter_name is used. Even though this is still allowed in CWL1.0, the more simpler style parmeter_name: is prefered.

@mayacoda what do you think?

Here is an example. I think the second way looks much cleaner: "old" style:

inputs:
  - id: label_in
    type: File
    'sbg:x': 0
    'sbg:y': 114
  - id: feat_in
    type: File
    'sbg:x': 0
    'sbg:y': 221
  - id: metadata_in
    type: File?
    'sbg:x': 0
    'sbg:y': 7

"new" style:

inputs:
  label_in:
    type: File
    'sbg:x': 0
    'sbg:y': 114
  feat_in:
    type: File
    'sbg:x': 0
    'sbg:y': 221
  metadata_in:
    type: File?
    'sbg:x': 0
    'sbg:y': 7

KerstenBreuer avatar Jan 08 '18 13:01 KerstenBreuer