Commit 8b2f5dbe authored by Samuel GAIST's avatar Samuel GAIST

[algorithm] Refactor prototype loading

When a new algorithm is created the prototype is used to generate
the new object. In order to comply with the new fixed version of
the schema (inputs and outputs must has at least one value), the
prototype must also have one of each. Since the dataformat used
is also validated as part of the creation, it must exist on the
platform. In order to ensure that we are using a valid dataformat,
the "integers" format is used and searched in the prefix to ensure
the correct author is used as it might be different depending on
how the platform was setup.
parent 75a45fe9
Pipeline #27357 passed with stage
in 15 minutes and 54 seconds
This diff is collapsed.
......@@ -8,8 +8,14 @@
{
"name": "main",
"inputs": {
"in_data": {
"type": "author/dataformat/1"
}
},
"outputs": {
"out_data": {
"type": "author/dataformat/1"
}
}
}
],
......
......@@ -25,8 +25,8 @@
}
},
"uniqueItems": true,
"additionalProperties": false,
"minProperties": 1
"minProperties": 1,
"additionalProperties": false
},
"io_group": {
......@@ -169,8 +169,8 @@
}
},
"uniqueItems": true,
"additionalProperties": false,
"minProperties": 1
"minProperties": 1,
"additionalProperties": false
},
"schema_version": { "$ref": "../common/1.json#/definitions/version" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment