GithubHelp home page GithubHelp logo

Comments (5)

mr-c avatar mr-c commented on June 17, 2024

Yes, the python classes have explicit support for $import, but the java classes don't seem to only handle $import in certain places.

The first two will likely also trigger common-workflow-language/schema_salad#349 (not yet supporting default values in the codegen classes)

https://github.com/common-workflow-language/cwl-v1.2/blob/main/tests/schemadef-tool.cwl loads with the python codegen

from cwljava.

mr-c avatar mr-c commented on June 17, 2024

@jdidion which CWL document is that stack trace for?

from cwljava.

jdidion avatar jdidion commented on June 17, 2024

params.cwl

from cwljava.

mr-c avatar mr-c commented on June 17, 2024

@jdidion Does the following fix the problem?

diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/YamlUtils.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/YamlUtils.java
index 89e12e9..266f43f 100644
--- a/src/main/java/org/w3id/cwl/cwl1_2/utils/YamlUtils.java
+++ b/src/main/java/org/w3id/cwl/cwl1_2/utils/YamlUtils.java
@@ -7,7 +7,7 @@ public class YamlUtils {
 
   public static Map<String, Object> mapFromString(final String text) {
     Yaml yaml = new Yaml();
-    final Map<String, Object> result = yaml.load(text);
+    final Map<String, Object> result = (Map<String, Object>) yaml.load(text);
     return result;
   }
 }

from cwljava.

mr-c avatar mr-c commented on June 17, 2024

Note that https://github.com/common-workflow-language/cwl-v1.2/blob/main/tests/import_schema-def.cwl does parse, so it may be the position of the$import that is the problem

from cwljava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.