You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to validate workflow with CommandLineBinding #116
CommandInputParameter extends InputSchema and specializes Binding to CommandLineBinding. CommandLineTool extends Process and specializes InputParameter to CommandInputParameter.
That means the type of CommandLineTool.inputs is CommandInputParameter.
Ah -- thanks for the clarification. I was under the assumption that once the Avro schema was expanded then we would be able to validate a document (such as bwa-mem-tool.cwl) to that schema according to validation methods available in Avro libraries.
Is schema_salad going to be providing guidelines for validating CWL documents?
Thanks!
Edit: Ah -- disregard my last message. I think this issue was local to my schema configuration.
Ah -- thanks for the clarification. I was under the assumption that once the Avro schema was expanded then we would be able to validate a document (such as bwa-mem-tool.cwl) to that schema according to validation methods available in Avro libraries.
The CWL reference implementation uses a custom validator for a few reasons. The original motivation was actually just to get better error messages because the Avro validate() method just returns a boolean with no indication of why validation failed. Later I added an optional "strict" validation that fails on unrecognized fields (which is useful for spotting typos) and support for wildcard Any type that you noted in #117.
So if we can find a workaround for the Any type, then it should be possible to use the standard Avro validation tools.
Is schema_salad going to be providing guidelines for validating CWL documents?
Yes. I'm going to embed the documentation into the salad metaschema to produce a specification document similar to the CWL specification document.
@slnovak Thank you for opening this issue. It looks like @tetron has responded to your question so I am going to close it. Feel free to reopen it, or to make a new issue as appropriate.
Activity
tetron commentedon Aug 26, 2015
CommandInputParameterextendsInputSchemaand specializesBindingtoCommandLineBinding.CommandLineToolextendsProcessand specializesInputParametertoCommandInputParameter.That means the type of
CommandLineTool.inputsisCommandInputParameter.stefan-pdx commentedon Aug 27, 2015
Ah -- thanks for the clarification. I was under the assumption that once the Avro schema was expanded then we would be able to validate a document (such as
bwa-mem-tool.cwl) to that schema according to validation methods available in Avro libraries.Is schema_salad going to be providing guidelines for validating CWL documents?
Thanks!
Edit: Ah -- disregard my last message. I think this issue was local to my schema configuration.
tetron commentedon Aug 27, 2015
The CWL reference implementation uses a custom validator for a few reasons. The original motivation was actually just to get better error messages because the Avro
validate()method just returns a boolean with no indication of why validation failed. Later I added an optional "strict" validation that fails on unrecognized fields (which is useful for spotting typos) and support for wildcardAnytype that you noted in #117.So if we can find a workaround for the
Anytype, then it should be possible to use the standard Avro validation tools.Yes. I'm going to embed the documentation into the salad metaschema to produce a specification document similar to the CWL specification document.
mr-c commentedon Oct 26, 2015
@slnovak Thank you for opening this issue. It looks like @tetron has responded to your question so I am going to close it. Feel free to reopen it, or to make a new issue as appropriate.
Merge pull request #116 from manu-chroma/master
Squashed 'v1.1.0-dev1/salad/' changes from 98a5bea..27c20e8