@@ -46,19 +46,19 @@ qx.Class.define("osparc.study.CreateFunction", {
4646 createFunctionData : function ( projectData , name , description , exposedInputs , exposedOutputs ) {
4747 const functionData = {
4848 "projectId" : projectData [ "uuid" ] ,
49- "name " : name ,
49+ "title " : name ,
5050 "description" : description ,
5151 "function_class" : "PROJECT" ,
5252 "inputSchema" : {
5353 "schema_class" : "application/schema+json" ,
54- "schema_dict " : {
54+ "schema_content " : {
5555 "type" : "object" ,
5656 "properties" : { }
5757 }
5858 } ,
5959 "outputSchema" : {
6060 "schema_class" : "application/schema+json" ,
61- "schema_dict " : {
61+ "schema_content " : {
6262 "type" : "object" ,
6363 "properties" : { }
6464 }
@@ -73,10 +73,11 @@ qx.Class.define("osparc.study.CreateFunction", {
7373 const parameterMetadata = osparc . store . Services . getMetadata ( parameter [ "key" ] , parameter [ "version" ] ) ;
7474 if ( parameterMetadata ) {
7575 const type = osparc . service . Utils . getParameterType ( parameterMetadata ) ;
76- functionData [ "inputSchema" ] [ "schema_dict " ] [ "properties" ] [ parameterLabel ] = {
76+ functionData [ "inputSchema" ] [ "schema_content " ] [ "properties" ] [ parameterLabel ] = {
7777 "type" : this . self ( ) . typeToFunctionType ( type ) ,
7878 } ;
7979 }
80+ } else {
8081 functionData [ "defaultInputs" ] [ parameterLabel ] = osparc . service . Utils . getParameterValue ( parameter ) ;
8182 }
8283 } ) ;
@@ -88,7 +89,7 @@ qx.Class.define("osparc.study.CreateFunction", {
8889 const probeMetadata = osparc . store . Services . getMetadata ( probe [ "key" ] , probe [ "version" ] ) ;
8990 if ( probeMetadata ) {
9091 const type = osparc . service . Utils . getProbeType ( probeMetadata ) ;
91- functionData [ "outputSchema" ] [ "schema_dict " ] [ "properties" ] [ probeLabel ] = {
92+ functionData [ "outputSchema" ] [ "schema_content " ] [ "properties" ] [ probeLabel ] = {
9293 "type" : this . self ( ) . typeToFunctionType ( type ) ,
9394 } ;
9495 }
0 commit comments