Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

Detect if the loaded file is a CWL tool and its specification #41

Open
ivanbatic opened this issue Jun 13, 2016 · 1 comment
Open

Detect if the loaded file is a CWL tool and its specification #41

ivanbatic opened this issue Jun 13, 2016 · 1 comment
Assignees
Milestone

Comments

@ivanbatic
Copy link
Contributor

No description provided.

@mayacoda
Copy link
Contributor

We can use the current server's storeService.readCWLFiles which will attempt to differentiate between a regular json/yaml file and one that has class: CommandLineTool or class: Workflow in the root. It returns the type of CWL tool that is described in the file.

Since v1.0, cwlVersion is a required property at the tool's root, so we can differentiate between v1.0 and draft-2 in that way. We should "sniff" out the version we should be validating against before we start validation.

@mayacoda mayacoda self-assigned this Jul 27, 2016
@mayacoda mayacoda added this to the Text Editor milestone Aug 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants